Function at 0x402220
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4255b9
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42eb24]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [esp + 0x30], edi
call fcn.00401a20
test al, al
je 0x40285a
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ebp, 0xf
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00404480
push ebx
push 0x42ff7c
or eax, 0xffffffff
lea esi, [esp + 0x54]
mov dword [esp + 0xd0], ebx
call fcn.004032b0
push ebx
push 0x42ffd0
or eax, 0xffffffff
call fcn.004032b0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], 1
call fcn.00401dd0
cmp eax, ebx
mov dword [esp + 0x34], eax
jne 0x40230c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402302
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x24]
push eax
call fcn.004059f3
add esp, 0xc
cmp dword [esp + 0x64], 0x10
jmp 0x40283f
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push 0xffffffffffffffff
mov byte [esp + 0xcc], 2
push ebx
push edi
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.00404480
push ebx
push 0x42ff98
or eax, 0xffffffff
lea esi, [esp + 0xa8]
mov byte [esp + 0xd0], 3
call fcn.004032b0
push ebx
push 0x42ffb4
or eax, 0xffffffff
call fcn.004032b0
mov edx, esi
push edx
lea ecx, [esp + 0x40]
call fcn.00401dd0
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0xc8], 4
call fcn.004059f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4023ad
push 0x80004005
call fcn.00404710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0xc8], 5
xor ebp, ebp
cmp dword [esp + 0x34], ebx
jle 0x402689
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4023fa
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x402403
call fcn.004115fc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x3c]
lea eax, [esi + ecx]
push edx
push eax
call fcn.00402bf0
test al, al
je 0x402677
push ebx
push 0x429537
lea ecx, [esp + 0x38]
call fcn.004048b0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
lea eax, [esp + 0x30]
push eax
je 0x402456
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40245f
call fcn.004115fc
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp dword [esi + eax + 0x18], 0x10
jb 0x402470
mov esi, dword [esi + eax + 4]
jmp 0x402474
lea esi, [esi + eax + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.00404a80
call fcn.00402060
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00404480
push ebx
push 0x42ff7c
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004032b0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4024d0
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4024d9
call fcn.004115fc
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esi + edx + 0x20]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004032b0
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x4024fe
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
mov esi, dword [esp + 0x30]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402510
sub eax, edx
push eax
push esi
lea eax, [esp + 0x54]
call fcn.004033a0
cmp edi, ebx
je 0x402570
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x40254f
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x402558
call fcn.004115fc
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
add eax, esi
push ebx
push eax
lea ecx, [esp + 0x74]
call fcn.00404480
jmp 0x402607
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
add ecx, 0x38
push ebx
push ecx
lea ecx, [esp + 0x74]
call fcn.00404480
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4025a9
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4025b2
call fcn.004115fc
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
lea eax, [esi + edi + 0x20]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.004032b0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4025ed
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4025f6
call fcn.004115fc
mov esi, dword [esp + 0x1c]
lea eax, [esi + edi]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.004032b0
mov edx, dword [esp + 0x2c]
add edx, 0x58
push edx
lea edi, [esp + 0x88]
call fcn.00403b90
add esp, 4
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
mov byte [esp + 0xd0], 6
call fcn.004032b0
mov esi, 0x10
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x9c], esi
jb 0x40265a
mov eax, dword [esp + 0x88]
push eax
call fcn.004059f3
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00404ef0
add esp, 4
test al, al
je 0x402882
mov edi, dword [esp + 0x2c]
add dword [esp + 0x28], 0x3c
add ebp, 1
cmp ebp, dword [esp + 0x34]
jl 0x4023d5
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.00404480
push ebx
push 0x42ff7c
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004032b0
push ebx
push 0x42ffd0
or eax, 0xffffffff
call fcn.004032b0
push 0xffffffffffffffff
push ebx
mov ebp, 0xf
push edi
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00404480
push ebx
push 0x42ff7c
or eax, 0xffffffff
lea esi, [esp + 0x8c]
mov byte [esp + 0xd0], 7
call fcn.004032b0
push ebx
push 0x42ffb4
or eax, 0xffffffff
call fcn.004032b0
mov ecx, dword [esp + 0x88]
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jae 0x402727
lea ecx, [esp + 0x88]
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x402735
lea eax, [esp + 0x50]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x40274c
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x9c], esi
jb 0x40276c
mov eax, dword [esp + 0x88]
push eax
call fcn.004059f3
add esp, 4
mov byte [esp + 0xc8], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x80], esi
jb 0x4027aa
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004059f3
add esp, 4
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x4027d2
mov edx, dword [esp + 0xa4]
push edx
call fcn.004059f3
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
je 0x40280b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x48]
push eax
call fcn.004059f3
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x40283b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x24]
push eax
call fcn.004059f3
add esp, 0xc
cmp dword [esp + 0x64], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jb 0x40285a
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004059f3
add esp, 4
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.0041125b
add esp, 0xb8
ret
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x48], esp
push edx
lea ecx, [esp + 0x2c]
call fcn.00402e60
mov ecx, dword [esp + 0x3c]
call fcn.004028b0
mov ebp, 0xf
jmp 0x40276c