Function at 0x403480
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4281f9
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432b60]
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.00401cf0
push edi
call fcn.00401a70
test al, al
je 0x403aca
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.00405ed0
push ebx
push 0x434004
or eax, 0xffffffff
lea esi, [esp + 0x54]
mov dword [esp + 0xd0], ebx
call fcn.00404850
push ebx
push 0x434058
or eax, 0xffffffff
call fcn.00404850
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.00403030
cmp eax, ebx
mov dword [esp + 0x34], eax
jne 0x403572
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403568
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.004056d0
mov eax, dword [esp + 0x24]
push eax
call fcn.00407b33
add esp, 0xc
cmp dword [esp + 0x64], 0x10
jmp 0x403aaf
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.00405ed0
push ebx
push 0x434020
or eax, 0xffffffff
lea esi, [esp + 0xa8]
mov byte [esp + 0xd0], 3
call fcn.00404850
push ebx
push 0x43403c
or eax, 0xffffffff
call fcn.00404850
mov edx, esi
push edx
lea ecx, [esp + 0x40]
call fcn.00403030
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0xc8], 4
call fcn.00408c77
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403613
push 0x80004005
call fcn.004060b0
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 0x4038f9
mov dword [esp + 0x28], ebx
jmp 0x403640
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x403665
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 0x40366e
call fcn.0041414e
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x3c]
lea eax, [esi + ecx]
push edx
push eax
call fcn.00403e60
test al, al
je 0x4038e7
push ebx
push 0x42c66b
lea ecx, [esp + 0x38]
call fcn.00406110
mov esi, dword [esp + 0x1c]
cmp esi, ebx
lea eax, [esp + 0x30]
push eax
je 0x4036c1
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 0x4036ca
call fcn.0041414e
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp dword [esi + eax + 0x18], 0x10
jb 0x4036db
mov esi, dword [esi + eax + 4]
jmp 0x4036df
lea esi, [esi + eax + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.004067f0
call fcn.004032c0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00405ed0
push ebx
push 0x434004
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00404850
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x40373b
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 0x403744
call fcn.0041414e
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.00404850
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x403769
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]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403780
sub eax, edx
push eax
push esi
lea eax, [esp + 0x54]
call fcn.00404940
cmp edi, ebx
je 0x4037e0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4037bf
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 0x4037c8
call fcn.0041414e
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.00405ed0
jmp 0x403877
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
add ecx, 0x38
push ebx
push ecx
lea ecx, [esp + 0x74]
call fcn.00405ed0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x403819
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 0x403822
call fcn.0041414e
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.00404850
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x40385d
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 0x403866
call fcn.0041414e
mov esi, dword [esp + 0x1c]
lea eax, [esi + edi]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.00404850
mov edx, dword [esp + 0x2c]
add edx, 0x58
push edx
lea edi, [esp + 0x88]
call fcn.00405190
add esp, 4
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x70]
mov byte [esp + 0xd0], 6
call fcn.00404850
mov esi, 0x10
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x9c], esi
jb 0x4038ca
mov eax, dword [esp + 0x88]
push eax
call fcn.00407b33
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00406ae0
add esp, 4
test al, al
je 0x403af2
mov edi, dword [esp + 0x2c]
add dword [esp + 0x28], 0x3c
add ebp, 1
cmp ebp, dword [esp + 0x34]
jl 0x403640
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.00405ed0
push ebx
push 0x434004
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00404850
push ebx
push 0x434058
or eax, 0xffffffff
call fcn.00404850
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.00405ed0
push ebx
push 0x434004
or eax, 0xffffffff
lea esi, [esp + 0x8c]
mov byte [esp + 0xd0], 7
call fcn.00404850
push ebx
push 0x43403c
or eax, 0xffffffff
call fcn.00404850
mov ecx, dword [esp + 0x88]
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jae 0x403997
lea ecx, [esp + 0x88]
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x4039a5
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 0x4039bc
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x9c], esi
jb 0x4039dc
mov eax, dword [esp + 0x88]
push eax
call fcn.00407b33
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 0x403a04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x80], esi
jb 0x403a1a
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00407b33
add esp, 4
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x403a42
mov edx, dword [esp + 0xa4]
push edx
call fcn.00407b33
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 0x403a7b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.004056d0
mov eax, dword [esp + 0x48]
push eax
call fcn.00407b33
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 0x403aab
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.004056d0
mov eax, dword [esp + 0x24]
push eax
call fcn.00407b33
add esp, 0xc
cmp dword [esp + 0x64], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jb 0x403aca
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00407b33
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.00414015
add esp, 0xb8
ret
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x48], esp
push edx
lea ecx, [esp + 0x2c]
call fcn.00404300
mov ecx, dword [esp + 0x3c]
call fcn.00403b20
mov ebp, 0xf
jmp 0x4039dc