Function at 0x406080
Capabilities:
Copy file
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42aae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov ebp, 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x94], ebp
call fcn.0040dec0
mov edi, dword [esp + 0x9c]
add edi, 0xfffffff0
push edi
mov byte [esp + 0x98], 2
mov dword [esp + 0x48], edi
call fcn.004015f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.004037d0
mov eax, dword [eax]
push 0x42d034
push eax
call fcn.0040edb6
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x406134
push ebp
push 0x42d034
lea ecx, [esp + 0x18]
call fcn.00403a10
test byte [0x438a6c], 1
jne 0x406175
or dword [0x438a6c], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x98], 4
call fcn.004015f0
add eax, 0x10
push 0x42bac0
mov dword [0x438a68], eax
call fcn.0040f162
add esp, 8
mov byte [esp + 0x94], 3
push 3
push 0x42d038
lea ecx, [esp + 0x18]
call fcn.00403a10
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x7c]
call fcn.0040df53
test eax, eax
je 0x40676d
jmp 0x4061a4
mov ebp, 1
lea ecx, [esp + 0x74]
call fcn.0040dc8a
mov edx, dword [esp + 0x74]
push 0x10
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c], eax
call dword [edx + 0x38]
test eax, eax
je 0x4063ba
lea ecx, [esp + 0x74]
call fcn.0040de87
test eax, eax
jne 0x4063ba
mov eax, dword [esp + 0x74]
push 0x10
lea ecx, [esp + 0x78]
call dword [eax + 0x38]
test eax, eax
je 0x406356
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x78]
call fcn.0040e0dc
mov esi, eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 5
call fcn.0040e0dc
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
mov ecx, dword [0x438a68]
sub edx, dword [ecx - 0xc]
push edx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov byte [esp + 0x9c], 6
call fcn.004037d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x94], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40625b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x94], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00403d40
push 0x42d034
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xac], 0xa
call fcn.00403df0
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xb
call fcn.00401820
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x94], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], ebp
jle 0x40632b
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.004012e0
mov esi, dword [esp + 0x14]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esi - 0x10]
mov byte [esp + 0x94], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa4]
push ecx
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x5c], esp
mov esi, esp
push eax
call fcn.004015f0
add eax, 0x10
mov dword [esi], eax
mov eax, esp
mov dword [esp + 0x64], esp
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xac], 0xc
call fcn.0040e0dc
mov byte [esp + 0xa8], 3
call fcn.00406080
add esp, 0x14
jmp 0x406761
lea ecx, [esp + 0x74]
call fcn.0040de87
test eax, eax
jne 0x406761
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x78]
call fcn.0040e0dc
mov esi, eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 0xd
call fcn.0040e0dc
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
mov ecx, dword [0x438a68]
sub edx, dword [ecx - 0xc]
push edx
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x9c], 0xe
call fcn.004037d0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40643a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00403d40
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 0x12
call fcn.0040e0dc
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, dword [esp + 0x34]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov ebp, dword [esp + 0x18]
je 0x40673f
lea ecx, [esp + 0x74]
call fcn.0040dcc4
mov ecx, dword [0x438a60]
add ecx, eax
mov eax, dword [0x438a64]
adc eax, edx
mov dword [esp + 0x54], ecx
mov dword [0x438a60], ecx
mov ecx, eax
mov dword [0x438a64], eax
and eax, 0x7fffffff
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa8]
fild qword [esp + 0x54]
and ecx, 0x80000000
xor edx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x5c], edx
fild qword [esp + 0x5c]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
fchs
mov dword [esp + 0x68], eax
faddp st(1)
mov dword [esp + 0x70], ecx
fild qword [esp + 0x64]
mov dword [esp + 0x6c], edx
fild qword [esp + 0x6c]
push edx
fchs
faddp st(1)
fdivp st(1)
fmul qword [0x42d048]
fsub qword [0x42d040]
call fcn.0040f1cc
mov ecx, dword [esp + 0xa8]
push eax
push 0x464
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea edx, [esp + 0xa0]
push edx
mov ecx, 0x438a7c
call fcn.00401820
lea eax, [esp + 0x18]
push eax
mov ecx, 0x438a78
call fcn.00401820
mov eax, dword [0x438a78]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x40673b
push 0x5c
push eax
call fcn.0040eefc
add esp, 8
test eax, eax
je 0x40673b
sub eax, dword [0x438a78]
test eax, eax
jle 0x40673b
mov eax, dword [ebp - 0xc]
test eax, eax
jge 0x406600
or eax, 0xffffffff
jmp 0x406619
push 0x42d034
push ebp
call fcn.0040ee4a
add esp, 8
test eax, eax
jne 0x406617
or eax, 0xffffffff
jmp 0x406619
sub eax, ebp
inc eax
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x438a78
call fcn.00403830
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x438a7c
mov byte [esp + 0x9c], 0x13
call fcn.00403a10
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406669
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x438a78]
mov esi, dword [eax - 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
jge 0x40667d
or eax, 0xffffffff
jmp 0x406696
push 0x42d034
push ebp
call fcn.0040ee4a
add esp, 8
test eax, eax
jne 0x406694
or eax, 0xffffffff
jmp 0x406696
sub eax, ebp
sub esi, eax
dec esi
push esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x438a78
call fcn.004037d0
mov ecx, dword [eax]
mov esi, dword [0x438a78]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x94], 0x14
je 0x40670c
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x4066fd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4066fd
push eax
call fcn.004015f0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4066f2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [0x438a78], ebx
jmp 0x40670c
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x438a78
call fcn.00401750
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x94], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4065c3
mov edi, dword [esp + 0x44]
lea eax, [ebp - 0x10]
mov byte [esp + 0x94], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x40619f
lea ecx, [esp + 0x74]
call fcn.0040dbba
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x94], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40679c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x74]
mov byte [esp + 0x94], 1
call fcn.0040dee4
mov byte [esp + 0x94], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067cc
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
mov dword [esp + 0x94], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret