Function at 0x418f24
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
mov edx, dword [0x418d90]
call fcn.00403428
xor eax, eax
push ebp
push 0x41933a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x414a0c]
call fcn.00402570
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x414a0c]
call fcn.00402570
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4192fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00415130
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00415130
mov eax, dword [ebp - 0xc]
call fcn.00414ca4
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403148
mov eax, dword [ebp - 0xc]
call fcn.00414ca4
push eax
lea eax, [ebp - 0x20]
call fcn.00403070
mov edx, eax
mov eax, dword [ebp - 0xc]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [esi + 1]
dec eax
test eax, eax
jl 0x4191d0
inc eax
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov eax, dword [esi + 5]
mov eax, dword [eax + ebx*4]
sub eax, 1
jb 0x419002
je 0x419008
jmp 0x41900e
mov byte [ebp - 0x31], 0
jmp 0x419012
mov byte [ebp - 0x31], 1
jmp 0x419012
mov byte [ebp - 0x31], 0
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x29], 1
mov eax, dword [esi + 9]
mov edx, dword [eax + ebx*4]
mov eax, 0x419358
call fcn.00403100
test eax, eax
jle 0x419072
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x3c]
call fcn.00418db8
mov eax, dword [ebp - 0x3c]
call fcn.00403b14
push eax
mov eax, dword [ebp - 0x20]
call fcn.00402e24
push eax
push 1
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
call fcn.00403070
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00418cc8
mov dword [ebp - 0x18], eax
jmp 0x419086
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00418c6c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x4191c6
mov eax, dword [esi + 5]
mov ecx, dword [eax + ebx*4]
cmp ecx, 1
jle 0x4190c7
inc dword [ebp - 0x30]
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4190b7
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4190c3
jmp 0x4190bb
pop edx
pop eax
jge 0x4190c3
inc dword [ebp - 0x18]
jmp 0x419020
mov byte [ebp - 0x31], 1
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402e24
sar eax, 1
jns 0x4190d9
adc eax, 0
dec eax
test eax, eax
jl 0x419155
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x14]
add edx, edx
inc edx
mov ecx, 2
call fcn.00403078
mov eax, dword [ebp - 0x1c]
mov edx, 0x419358
call fcn.00402f68
je 0x41914a
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x419364
call fcn.00402e70
mov eax, dword [ebp - 0x48]
call fcn.004063a0
mov byte [ebp - 0x21], al
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebp - 0x21]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x44]
jne 0x4190e9
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402e24
sar eax, 1
jns 0x419167
adc eax, 0
mov edx, dword [ebp - 0x18]
sub edx, eax
inc edx
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x29], 0
je 0x419186
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 0
jne 0x419186
inc dword [ebp - 0x28]
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x4191aa
mov eax, dword [esi + 5]
mov eax, dword [eax + ebx*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4191a3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4191aa
inc dword [ebp - 0x28]
cmp byte [ebp - 0x29], 0
je 0x4191bc
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 1
jne 0x4191bc
inc dword [ebp - 0x28]
cmp byte [ebp - 0x31], 0
je 0x419020
inc ebx
dec dword [ebp - 0x40]
jne 0x418ff3
cmp dword [ebp - 0x28], 0
je 0x4191f3
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [esi + 1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4191ea
cmp eax, dword [esp]
sete al
add esp, 8
mov byte [ebp - 6], al
cmp byte [ebp + 8], 0
je 0x419269
cmp byte [ebp - 5], 0
je 0x41925c
lea eax, [ebp - 0x4c]
mov ecx, 0x419370
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x4c]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x50]
mov ecx, 0x419370
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x50]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x41925c
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x419380
call fcn.00417be8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0041505c
jmp 0x4192df
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x4192ce
lea eax, [ebp - 0x54]
mov ecx, 0x419370
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x54]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x58]
mov ecx, 0x419370
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x58]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4192ce
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x419380
call fcn.00417be8
cmp byte [ebp - 6], 0
je 0x4192df
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0041505c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419304
mov eax, dword [ebp - 0xc]
call fcn.004025a0
mov eax, dword [ebp - 0x10]
call fcn.004025a0
ret