Function at 0x40292c
Capabilities:
Copy file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc0
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x402960
mov byte [0x46543d], 0
push 0x4516d0
push 0x4652d5
call fcn.004415c8
add esp, 8
mov eax, 0x4652d5
jmp 0x402cd0
push 0x167
push dword [ebp + 8]
lea edx, [ebp - 0x170]
push edx
call fcn.004046e0
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
call fcn.00404600
pop ecx
lea eax, [ebp - 0x170]
push eax
call fcn.004415f8
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x104
jge 0x4029a3
cmp dword [ebp - 8], 2
jge 0x4029b4
mov byte [0x4652d5], 0
mov eax, 0x4652d5
jmp 0x402cd0
lea edx, [ebp - 0x170]
push edx
push 0x46543d
call fcn.004415c8
add esp, 8
push 0x455634
push 0x46543d
call fcn.004414ec
add esp, 8
push 0x4516d0
push 0x46543d
call fcn.004414ec
add esp, 8
push 0x4652d5
push 0
push 0
push 0x2e
push 0
call sub.SHFOLDER.DLL_SHGetFolderPathA
mov dword [ebp - 8], eax
test eax, eax
jne 0x4029a3
push 0x4652d5
call fcn.004415f8
pop ecx
mov dword [ebp - 8], eax
cmp eax, 2
jl 0x4029a3
cmp dword [ebp - 8], 0x104
jge 0x4029a3
push 0x4652d5
call fcn.00404600
pop ecx
push 0x5c
lea edx, [ebp - 0x170]
push edx
call fcn.004416fd
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4029a3
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x4029a3
push dword [ebp - 4]
call fcn.004415f8
pop ecx
cmp eax, 0x62
ja 0x4029a3
push 0x4652d5
lea eax, [ebp - 0x440]
push eax
call fcn.004415c8
add esp, 8
push 0x455636
push 0x4652d5
call fcn.004414ec
add esp, 8
push dword [ebp - 4]
push 0x4652d5
call fcn.004414ec
add esp, 8
push 0x4652d5
lea edx, [ebp - 0x2d8]
push edx
call fcn.004415c8
add esp, 8
push 0x455638
push 0x4652d5
call fcn.004414ec
add esp, 8
push 0x4516d0
push 0x4652d5
call fcn.004414ec
add esp, 8
push 0x4652d5
push 0x46543d
call fcn.004417dc
add esp, 8
test eax, eax
jne 0x402b00
mov byte [0x46543d], 0
mov eax, 0x4652d5
jmp 0x402cd0
lea edx, [ebp - 0x2d8]
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
jne 0x402c0b
lea ecx, [ebp - 0x440]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
jne 0x402b8f
lea eax, [ebp - 0x440]
push eax
call fcn.004415f8
pop ecx
cmp eax, 0x104
jbe 0x402b3f
mov byte [ebp - 0x33c], 0
lea edx, [ebp - 0x440]
push edx
push 0x45563a
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.00444f70
add esp, 0xc
push 0
push 0x455650
lea eax, [ebp - 0x2d8]
push eax
call sub.USER32.DLL_GetFocus
push eax
call sub.USER32.DLL_MessageBoxA
push 0x46543d
push 0x4652d5
call fcn.004415c8
add esp, 8
mov eax, 0x46543d
jmp 0x402cd0
lea edx, [ebp - 0x2d8]
push edx
call fcn.00442ccc
pop ecx
test eax, eax
jge 0x402c0b
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004415f8
pop ecx
cmp eax, 0x104
jbe 0x402bbb
mov byte [ebp - 0x1d4], 0
lea eax, [ebp - 0x2d8]
push eax
push str.Cannot_create_dir:_n_s
lea edx, [ebp - 0x440]
push edx
call fcn.00444f70
add esp, 0xc
push 0
push 0x455673
lea ecx, [ebp - 0x440]
push ecx
call sub.USER32.DLL_GetFocus
push eax
call sub.USER32.DLL_MessageBoxA
push 0x46543d
push 0x4652d5
call fcn.004415c8
add esp, 8
mov eax, 0x46543d
jmp 0x402cd0
push 0x46543d
call fcn.0040464c
pop ecx
test eax, eax
je 0x402cc4
push 0
push 0x4652d5
push 0x46543d
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x402c48
push 0x46543d
call fcn.00442d38
pop ecx
mov eax, 0x4652d5
jmp 0x402cd0
push 0x4652d5
lea edx, [ebp - 0x2d8]
push edx
call fcn.004415c8
add esp, 8
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004415f8
pop ecx
cmp eax, 0x104
jbe 0x402c77
mov byte [ebp - 0x1d4], 0
lea eax, [ebp - 0x2d8]
push eax
push str.Cannot_copy_file:_n_s
lea edx, [ebp - 0x440]
push edx
call fcn.00444f70
add esp, 0xc
push 0
push 0x455695
lea ecx, [ebp - 0x440]
push ecx
call sub.USER32.DLL_GetFocus
push eax
call sub.USER32.DLL_MessageBoxA
push 0x46543d
push 0x4652d5
call fcn.004415c8
add esp, 8
mov eax, 0x46543d
jmp 0x402cd0
mov byte [0x46543d], 0
mov eax, 0x4652d5
mov esp, ebp
pop ebp
ret