Function at 0x40dfe0
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 [0x40de4c]
call fcn.00403428
xor eax, eax
push ebp
push 0x40e3f6
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 [0x409ac8]
call fcn.00402570
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x409ac8]
call fcn.00402570
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e3b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a1ec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040a1ec
mov eax, dword [ebp - 0xc]
call fcn.00409d60
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403148
mov eax, dword [ebp - 0xc]
call fcn.00409d60
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 0x40e28c
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 0x40e0be
je 0x40e0c4
jmp 0x40e0ca
mov byte [ebp - 0x31], 0
jmp 0x40e0ce
mov byte [ebp - 0x31], 1
jmp 0x40e0ce
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, 0x40e414
call fcn.00403100
test eax, eax
jle 0x40e12e
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x3c]
call fcn.0040de74
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.0040dd84
mov dword [ebp - 0x18], eax
jmp 0x40e142
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.0040dd28
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x40e282
mov eax, dword [esi + 5]
mov ecx, dword [eax + ebx*4]
cmp ecx, 1
jle 0x40e183
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 0x40e173
cmp eax, dword [esp]
pop edx
pop eax
jae 0x40e17f
jmp 0x40e177
pop edx
pop eax
jge 0x40e17f
inc dword [ebp - 0x18]
jmp 0x40e0dc
mov byte [ebp - 0x31], 1
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402e24
sar eax, 1
jns 0x40e195
adc eax, 0
dec eax
test eax, eax
jl 0x40e211
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, 0x40e414
call fcn.00402f68
je 0x40e206
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x40e420
call fcn.00402e70
mov eax, dword [ebp - 0x48]
call fcn.00406398
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 0x40e1a5
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402e24
sar eax, 1
jns 0x40e223
adc eax, 0
mov edx, dword [ebp - 0x18]
sub edx, eax
inc edx
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x29], 0
je 0x40e242
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 0
jne 0x40e242
inc dword [ebp - 0x28]
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x40e266
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 0x40e25f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40e266
inc dword [ebp - 0x28]
cmp byte [ebp - 0x29], 0
je 0x40e278
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 1
jne 0x40e278
inc dword [ebp - 0x28]
cmp byte [ebp - 0x31], 0
je 0x40e0dc
inc ebx
dec dword [ebp - 0x40]
jne 0x40e0af
cmp dword [ebp - 0x28], 0
je 0x40e2af
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [esi + 1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x40e2a6
cmp eax, dword [esp]
sete al
add esp, 8
mov byte [ebp - 6], al
cmp byte [ebp + 8], 0
je 0x40e325
cmp byte [ebp - 5], 0
je 0x40e318
lea eax, [ebp - 0x4c]
mov ecx, 0x40e42c
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, 0x40e42c
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 0x40e318
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40e43c
call fcn.0040cca4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a118
jmp 0x40e39b
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x40e38a
lea eax, [ebp - 0x54]
mov ecx, 0x40e42c
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, 0x40e42c
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 0x40e38a
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40e43c
call fcn.0040cca4
cmp byte [ebp - 6], 0
je 0x40e39b
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c0
mov eax, dword [ebp - 0xc]
call fcn.004025a0
mov eax, dword [ebp - 0x10]
call fcn.004025a0
ret