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

Disassembly:
push 0xffffffffffffffff
push 0x45e3d3
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e074]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
push str.C:300TmpDirectory
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4063e7
mov ecx, dword [esi + 0x9c]
sub ecx, dword [esi + 0x98]
lea edi, [esi + 0x8c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], edi
je 0x405d0b
push ebx
push 0x461377
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.004017b0
mov dword [esp + 0xc8], ebx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor ebp, ebp
add ecx, edx
je 0x405ce9
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x24]
call fcn.004052b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xd4], 1
call fcn.004016d0
mov byte [esp + 0xc8], bl
cmp dword [esp + 0x3c], 0x10
jb 0x405c20
mov edx, dword [esp + 0x28]
push edx
call fcn.00445523
add esp, 4
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x405c42
call fcn.00446719
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004053b0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
mov byte [esp + 0xd0], 2
call fcn.00401c40
mov esi, 0x10
mov byte [esp + 0xc8], bl
cmp dword [esp + 0x3c], esi
jb 0x405ca6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00445523
add esp, 4
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x405cb7
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
cmp ebp, eax
jb 0x405be7
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x80], 0x10
jb 0x405d0b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00445523
add esp, 4
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
lea ebp, [esi + 0x74]
sar edx, 5
test edx, edx
ja 0x405d2e
push 0x461a0c
call fcn.00446332
add esp, 4
push ebx
push 0x461377
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.004017b0
mov dword [esp + 0xc8], 3
push ebx
push 0x461377
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004017b0
mov byte [esp + 0xc8], 4
push ebx
push 0x461377
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.004017b0
mov byte [esp + 0xc8], 5
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
sar eax, 5
test eax, eax
jbe 0x406304
mov dword [esp + 0x14], ebx
jmp 0x405de4
mov esi, dword [esp + 0x20]
push ebx
push 0x461377
lea ecx, [esp + 0x8c]
call fcn.004017b0
push ebx
push 0x461377
lea ecx, [esp + 0x54]
call fcn.004017b0
push ebx
push 0x461377
lea ecx, [esp + 0xa8]
call fcn.004017b0
push 0x12
push str.C:300TmpDirectory
lea ecx, [esp + 0x54]
call fcn.004017b0
push 1
push 0x461354
lea eax, [esp + 0x54]
call fcn.00401d30
lea eax, [esi + 0x3c]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00401c40
push 1
push 0x461a24
mov eax, esi
call fcn.00401d30
call fcn.004059e0
test al, al
je 0x405e6d
push 6
push str.win10_
mov eax, esi
call fcn.00401d30
mov eax, dword [esp + 0x20]
add eax, 0x20
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00401c40
push 1
push 0x461a24
mov eax, esi
call fcn.00401d30
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
sar ecx, 5
cmp dword [esp + 0x18], ecx
jb 0x405ea4
call fcn.00446719
mov eax, dword [ebp + 0xc]
add eax, dword [esp + 0x14]
sub esp, 0x1c
mov dword [esp + 0x38], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebx
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004016d0
push esi
call fcn.004054a0
lea ecx, [esp + 0x40]
call fcn.004053b0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
mov byte [esp + 0xd0], 6
call fcn.00401c40
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], 0x10
jb 0x405f15
mov edx, dword [esp + 0x28]
push edx
call fcn.00445523
add esp, 4
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 5
cmp dword [esp + 0x18], eax
jb 0x405f29
call fcn.00446719
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
cmp byte [ecx + esi + 0x1c], bl
jne 0x405f73
lea ecx, [esp + 0x24]
call fcn.004052b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xd4], 7
call fcn.004016d0
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], 0x10
jb 0x405f73
mov edx, dword [esp + 0x28]
push edx
call fcn.00445523
add esp, 4
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 5
cmp dword [esp + 0x18], eax
jb 0x405f87
call fcn.00446719
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
add eax, esi
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004055b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 8
call fcn.004016d0
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], 0x10
jb 0x405fe4
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00445523
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004053b0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x8c]
mov byte [esp + 0xd0], 9
call fcn.00401c40
mov esi, 0x10
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], esi
jb 0x406048
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004055b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 0xa
call fcn.004016d0
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], esi
jb 0x4060a0
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x4060ae
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], esi
jae 0x4060c5
lea eax, [esp + 0x88]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
jne 0x40616e
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004016d0
mov ecx, esi
call fcn.004055b0
mov byte [esp + 0xe4], 0xb
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 5
cmp dword [esp + 0x34], eax
jb 0x406125
call fcn.00446719
mov eax, dword [ebp + 0xc]
add eax, dword [esp + 0x30]
sub esp, 0x1c
mov dword [esp + 0x78], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x94], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004016d0
mov ecx, esi
call fcn.004053b0
mov ecx, dword [esp + 0x58]
push ecx
mov byte [esp + 0x104], 5
call fcn.004056c0
jmp 0x4061e1
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
sar edx, 5
cmp dword [esp + 0x18], edx
jb 0x406182
call fcn.00446719
mov eax, dword [ebp + 0xc]
add eax, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004053b0
sub esp, 0x1c
mov esi, eax
mov edi, esp
mov ecx, 7
push 0x461a30
rep movsd dword es:[edi], dword [esi]
call fcn.00446332
add esp, 0x20
cmp dword [esp + 0x3c], 0x10
jb 0x4061dc
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
mov edi, 0xf
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x4061f9
lea eax, [esp + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004055b0
cmp dword [eax + 0x18], 0x10
jb 0x406235
mov eax, dword [eax + 4]
jmp 0x406238
add eax, 4
push eax
call esi
cmp dword [esp + 0x3c], 0x10
jb 0x40624f
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov esi, str..zip
mov byte [ecx + 4], bl
call fcn.004016d0
lea ecx, [esp + 0x40]
call fcn.004055b0
mov edi, esi
push eax
lea esi, [esp + 0x6c]
mov byte [esp + 0xcc], 0xc
call fcn.00401b70
mov esi, 0x10
add esp, 4
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x3c], esi
jb 0x4062b3
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x4062c4
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x80], esi
jb 0x4062e1
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00445523
add esp, 4
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x20
inc eax
sar edx, 5
mov dword [esp + 0x18], eax
cmp eax, edx
jb 0x405de0
mov edi, dword [esp + 0x48]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
cmp dword [ebp + 0xc], eax
jbe 0x406315
call fcn.00446719
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x406325
call fcn.00446719
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
push ecx
push ebx
push esi
push eax
lea ebx, [esp + 0x50]
mov esi, ebp
call fcn.00406870
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x406348
call fcn.00446719
mov ebx, dword [edi + 0xc]
mov ebp, dword [edi]
cmp ebx, dword [edi + 0x10]
jbe 0x406357
call fcn.00446719
mov eax, dword [edi]
push esi
push ebp
push ebx
push eax
lea ebx, [esp + 0x50]
mov esi, edi
call fcn.004069f0
push str.C:300TmpDirectory
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, 0x10
cmp dword [esp + 0xb8], esi
jb 0x406391
mov edx, dword [esp + 0xa4]
push edx
call fcn.00445523
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
cmp dword [esp + 0x64], esi
jb 0x4063c0
mov eax, dword [esp + 0x50]
push eax
call fcn.00445523
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x9c], esi
jb 0x406411
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00445523
add esp, 4
jmp 0x406411
push str.C:300TmpDirectory
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4063ff
mov ecx, esi
call fcn.00405b10
jmp 0x406411
push str.C:300TmpDirectory
push 0x461a48
call fcn.00446332
add esp, 8
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004453f2
add esp, 0xb8
ret