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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4200ae
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, vtable.MemoryControl.0
mov esi, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
push edi
push ebx
mov byte [esp + 0xc8], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x48]
push ecx
push edi
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.0040a6a0
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.0040a6a0
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
push eax
push edi
push ecx
mov ecx, esi
call edx
test al, al
jne 0x409405
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4093ed
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4093fe
push eax
call fcn.004133d3
add esp, 4
xor al, al
jmp 0x409b8f
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x40]
push eax
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.00405e00
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
call fcn.00405e00
mov eax, ebx
add esp, 4
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], si
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409470
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x9c]
call fcn.004053a0
xor edi, edi
mov byte [esp + 0xc0], 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], edi
nop
xor ebx, ebx
cmp esi, ebx
je 0x409722
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x409722
mov edx, dword [esp + 0x10]
lea ebx, [edx + esi]
push 1
call fcn.00409ee0
test esi, esi
mov ebx, eax
je 0x4094fc
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409505
call fcn.00412b4f
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi + 0x14]
add eax, 0xffffffff
cmp ebx, eax
jne 0x409638
push 1
lea ebx, [esp + 0x98]
call fcn.00409ee0
mov ecx, dword [esp + 0xa8]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x409580
push ecx
mov ecx, ebx
push ecx
xor ecx, ecx
lea esi, [esp + 0x80]
call fcn.00405f60
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 5
call fcn.00404d90
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x90], 8
jb 0x409582
mov edx, dword [esp + 0x7c]
push edx
call fcn.004127aa
add esp, 4
jmp 0x409582
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.00404d90
mov byte [esp + 0xc0], 6
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4095d3
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4095dc
call fcn.00412b4f
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add esi, eax
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x64]
call fcn.00405620
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x4095ff
lea eax, [esp + 0x60]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x409618
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409645
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x74], 8
jb 0x409634
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004127aa
add esp, 4
mov esi, dword [esp + 0x18]
add edi, 1
add dword [esp + 0x10], 0x1c
jmp 0x4094a0
mov edi, 8
cmp dword [esp + 0x74], edi
jb 0x40965d
mov edx, dword [esp + 0x60]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0xac], edi
mov esi, 7
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jb 0x409688
mov eax, dword [esp + 0x98]
push eax
call fcn.004127aa
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
je 0x4096c6
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x4096fa
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x409717
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
jmp 0x4093f3
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ebx
lea esp, [esp]
cmp esi, ebx
je 0x409a81
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x409a81
mov eax, dword [esp + 0x28]
lea ebx, [eax + esi]
push 1
call fcn.00409ee0
xor edi, edi
cmp esi, edi
mov ebx, eax
je 0x40978e
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x409797
call fcn.00412b4f
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi + 0x14]
add eax, 0xffffffff
cmp ebx, eax
je 0x40996b
mov eax, 7
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov word [esp + 0x60], di
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], di
mov byte [esp + 0xc0], 8
mov eax, dword [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4097e0
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
push eax
push edx
lea esi, [esp + 0x64]
call fcn.004053a0
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x409825
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x40982e
call fcn.00412b4f
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
add esi, ebx
push edi
push esi
or eax, 0xffffffff
lea esi, [esp + 0x64]
call fcn.00405620
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x80]
call fcn.00404d90
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x40987f
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x409888
call fcn.00412b4f
mov esi, dword [esp + 0x18]
add esi, ebx
push edi
push esi
or eax, 0xffffffff
lea esi, [esp + 0x80]
call fcn.00405620
cmp dword [esp + 0x90], 8
mov ecx, dword [esp + 0x7c]
jae 0x4098ad
lea ecx, [esp + 0x7c]
mov eax, dword [esp + 0x60]
mov ebx, 8
cmp dword [esp + 0x74], ebx
jae 0x4098c0
lea eax, [esp + 0x60]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x40991f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x409980
cmp dword [esp + 0x90], ebx
jb 0x4098f3
mov eax, dword [esp + 0x7c]
push eax
call fcn.004127aa
add esp, 4
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], di
jb 0x409967
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x40995f
cmp dword [esp + 0x90], ebx
jb 0x409935
mov edx, dword [esp + 0x7c]
push edx
call fcn.004127aa
add esp, 4
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], di
jb 0x409967
mov eax, dword [esp + 0x60]
push eax
call fcn.004127aa
add esp, 4
mov esi, dword [esp + 0x18]
add dword [esp + 0x10], 1
add dword [esp + 0x28], 0x1c
mov edi, dword [esp + 0x10]
xor ebx, ebx
jmp 0x409730
cmp dword [esp + 0x90], ebx
jb 0x409996
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x74], ebx
mov esi, 7
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], di
jb 0x4099c1
mov edx, dword [esp + 0x60]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0xac], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov word [esp + 0x60], di
jb 0x4099e7
mov eax, dword [esp + 0x98]
push eax
call fcn.004127aa
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], edi
mov word [esp + 0x98], di
je 0x409a25
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x30]
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x409a59
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x48]
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x409a76
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
jmp 0x4093f3
cmp dword [esp + 0xac], 8
jb 0x409a9f
mov eax, dword [esp + 0x98]
push eax
call fcn.004127aa
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, ebx
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
je 0x409b07
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x409afc
add esi, 0x18
xor edi, edi
lea ebx, [ebx]
cmp dword [esi], 8
jb 0x409ae1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], di
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, ebx
jne 0x409ad0
mov esi, dword [esp + 0x18]
push esi
call fcn.004127aa
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0x30]
cmp esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x409b5f
mov ebx, dword [esp + 0x34]
cmp esi, ebx
je 0x409b54
add esi, 0x18
xor edi, edi
cmp dword [esi], 8
jb 0x409b39
mov eax, dword [esi - 0x14]
push eax
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], di
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebx
jne 0x409b28
mov esi, dword [esp + 0x30]
push esi
call fcn.004127aa
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x409b7c
push eax
call fcn.004133d3
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x409b8d
push eax
call fcn.004133d3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 8