Function at 0x40582c
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
mov eax, 0x410024
call fcn.004070f0
sub esp, 0x734
mov eax, dword [0x4150f0]
push ebx
push esi
push edi
push 0x411e04
push 1
mov dword [ebp - 0x10], eax
call fcn.00403991
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.unpackselftmp
lea eax, [ebp - 0x420]
push eax
mov edi, str._s_s
lea eax, [ebp - 0x31c]
push edi
push eax
call fcn.0040627d
add esp, 0x10
lea ecx, [ebp - 0x730]
call fcn.0040402a
xor ebx, ebx
lea ecx, [ebp - 0x740]
mov dword [ebp - 4], ebx
call fcn.0040402a
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x31c]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004055ed
add esp, 0x10
xor esi, esi
mov ecx, dword [ebp - 0x73c]
cmp ecx, ebx
jne 0x4058d5
xor eax, eax
jmp 0x4058e0
mov eax, dword [ebp - 0x738]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x405941
lea eax, [ecx + esi*4]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.0040627d
lea eax, [ebp - 0x114]
push eax
call fcn.00404c4a
add esp, 0x14
test eax, eax
jne 0x405924
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405927
inc esi
jmp 0x4058c7
push ebx
push 0x411240
push 0x411dcc
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
inc esi
jmp 0x405b27
push 0x4119c0
call fcn.004038a6
mov eax, dword [ebp - 0x72c]
test eax, eax
pop ecx
jne 0x40595a
xor ecx, ecx
jmp 0x405965
mov ecx, dword [ebp - 0x728]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jge 0x405b18
mov esi, ebx
shl esi, 2
add eax, esi
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.0040627d
mov eax, dword [ebp - 0x72c]
add eax, esi
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040627d
lea eax, [ebp - 0x114]
push eax
call fcn.00405029
add esp, 0x24
test eax, eax
mov eax, dword [ebp - 0x72c]
jne 0x405a36
add eax, esi
mov eax, dword [eax]
push dword [eax]
push 0x411db4
push 1
call fcn.00403991
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00403a16
add esp, 0x14
test eax, eax
je 0x405ac9
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push eax
lea eax, [ebp - 0x620]
push 0x411d20
push eax
call fcn.0040627d
add esp, 0x14
push 0
push 0x411240
lea eax, [ebp - 0x620]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
pop esi
jmp 0x405b27
add eax, esi
mov eax, dword [eax]
push dword [eax]
push 0x411d04
push 1
call fcn.00403991
lea eax, [ebp - 0x218]
push eax
call fcn.00404c30
add esp, 0x10
test eax, eax
jne 0x405ab0
xor esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405ac9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x720]
push 0x411c78
push eax
call fcn.0040627d
add esp, 0x10
push esi
push 0x411240
lea eax, [ebp - 0x720]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
jmp 0x405a30
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402155
test eax, eax
pop ecx
pop ecx
jne 0x405ad9
push 0x4119c0
call fcn.004038a6
inc ebx
jmp 0x40594b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x520]
push 0x411bf0
push eax
call fcn.0040627d
add esp, 0x10
push 0
push 0x411240
lea eax, [ebp - 0x520]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 4
jmp 0x405a30
lea eax, [ebp - 0x31c]
push eax
call fcn.00404c64
pop ecx
xor esi, esi
lea ecx, [ebp - 0x740]
mov byte [ebp - 4], 0
call fcn.00403e23
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.00403e23
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004068c2
leave
ret