Function at 0x402500
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
mov ebx, dword [esp + 0x354]
push esi
push edi
push 0x5c
push 0x41b920
mov dword [esp + 0x14], ebx
call fcn.004095d0
add esp, 8
test eax, eax
jne 0x4025b9
lea eax, [esp + 0x154]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402556
sub eax, edx
cmp byte [esp + eax + 0x153], 0x5c
je 0x402583
lea edi, [esp + 0x154]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402571
mov cx, word [0x415854]
mov word [edi], cx
mov eax, 0x41b920
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402590
lea edi, [esp + 0x154]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4025a1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x14]
push edx
push 0x41b920
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402627
push 0x5c
push 0x41b920
call fcn.00409590
mov esi, eax
sub eax, 0x41b920
inc eax
push eax
lea ecx, [esp + 0x160]
push 0x41b920
push ecx
call fcn.00408ba0
lea eax, [esp + 0x54]
mov edx, eax
sub esi, 0x41b920
add esp, 0x14
sub esi, edx
lea edx, [esp + esi + 0x155]
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402610
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x40]
jmp 0x402652
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x41b920]
mov byte [esp + eax + 0x154], cl
inc eax
test cl, cl
jne 0x402630
push 0x5c
push 0x41b920
call fcn.00409590
add esp, 8
inc eax
lea ecx, [esp + 0x154]
push 0x5c
push ecx
mov dword [esp + 0x18], eax
call fcn.00409590
add esp, 8
test eax, eax
je 0x402772
push 0x2e
push eax
call fcn.00409590
add esp, 8
test eax, eax
je 0x402682
mov byte [eax], 0
push 0
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4027a1
lea eax, [esp + 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026a4
mov esi, dword [0x41a61c]
sub eax, edx
lea edi, [esp + eax + 0x154]
mov byte [edi], 0x5c
inc edi
push ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x402731
lea esp, [esp]
push 2
lea eax, [esi + 0x214]
push 0x415850
push eax
call fcn.00411fbc
add esp, 0xc
test eax, eax
jne 0x402712
lea ebx, [esi + 0x14]
mov edx, edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4026f3
lea ecx, [esp + 0x158]
push ecx
push ebx
call fcn.0040955a
add esp, 8
test eax, eax
jne 0x40271a
mov esi, dword [esi]
test esi, esi
jne 0x4026d0
jmp 0x402731
mov edx, dword [esp + 0x10]
push 0x30
push str.Error
push str.Could_not_move_file
push edx
call ebp
test esi, esi
jne 0x402771
mov edx, dword [esp + 0x14]
mov eax, edx
sub edi, edx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x402740
lea eax, [esp + 0x158]
push eax
push edx
call fcn.0040955a
add esp, 8
test eax, eax
jne 0x40278e
mov ecx, dword [esp + 0x10]
push eax
push str.Completed
push str.All_good_files_successfully_moved
push ecx
call ebp
pop ebp
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408b84
add esp, 0x34c
ret 4
mov edx, dword [esp + 0x10]
push 0x30
push str.Error
push str.Could_not_move_db_file
push edx
jmp 0x40276f
push 0x30
push str.Error
push str.Could_not_create_directory
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402772