Function at 0x41a594
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 [0x41a400]
call fcn.0040352c
xor eax, eax
push ebp
push 0x41a9d5
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 [0x416818]
call fcn.00402468
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x416818]
call fcn.00402468
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a998
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416f3c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00416f3c
mov eax, dword [ebp - 0xc]
call fcn.00416ab0
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.0040321c
mov eax, dword [ebp - 0xc]
call fcn.00416ab0
push eax
lea eax, [ebp - 0x20]
call fcn.00403144
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 0x41a842
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 0x41a672
je 0x41a678
jmp 0x41a67e
mov byte [ebp - 0x31], 0
jmp 0x41a682
mov byte [ebp - 0x31], 1
jmp 0x41a682
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, 0x41a9f0
call fcn.004031d4
test eax, eax
jle 0x41a6e2
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0x3c]
call fcn.0041a428
mov eax, dword [ebp - 0x3c]
call fcn.00403dac
push eax
mov eax, dword [ebp - 0x20]
call fcn.00402ef8
push eax
push 1
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
call fcn.00403144
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.0041a338
mov dword [ebp - 0x18], eax
jmp 0x41a6f6
mov eax, dword [esi + 9]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.0041a2dc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jle 0x41a838
mov eax, dword [esi + 5]
mov ecx, dword [eax + ebx*4]
cmp ecx, 1
jle 0x41a737
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 0x41a727
cmp eax, dword [esp]
pop edx
pop eax
jae 0x41a733
jmp 0x41a72b
pop edx
pop eax
jge 0x41a733
inc dword [ebp - 0x18]
jmp 0x41a690
mov byte [ebp - 0x31], 1
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402ef8
sar eax, 1
jns 0x41a749
adc eax, 0
dec eax
test eax, eax
jl 0x41a7c5
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.0040314c
mov eax, dword [ebp - 0x1c]
mov edx, 0x41a9f0
call fcn.0040303c
je 0x41a7ba
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41a9fc
call fcn.00402f44
mov eax, dword [ebp - 0x48]
call fcn.0040670c
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 0x41a759
mov eax, dword [esi + 0xd]
mov eax, dword [eax + ebx*4]
call fcn.00402ef8
sar eax, 1
jns 0x41a7d7
adc eax, 0
mov edx, dword [ebp - 0x18]
sub edx, eax
add edx, 2
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x29], 0
je 0x41a7f8
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 0
jne 0x41a7f8
inc dword [ebp - 0x28]
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x41a81c
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 0x41a815
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41a81c
inc dword [ebp - 0x28]
cmp byte [ebp - 0x29], 0
je 0x41a82e
mov eax, dword [esi + 5]
cmp dword [eax + ebx*4], 1
jne 0x41a82e
inc dword [ebp - 0x28]
cmp byte [ebp - 0x31], 0
je 0x41a690
inc ebx
dec dword [ebp - 0x40]
jne 0x41a663
cmp dword [ebp - 0x28], 0
je 0x41a865
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [esi + 1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x41a85c
cmp eax, dword [esp]
sete al
add esp, 8
mov byte [ebp - 6], al
cmp byte [ebp + 8], 0
je 0x41a8f3
cmp byte [ebp - 5], 0
je 0x41a8e3
lea eax, [ebp - 0x4c]
mov ecx, 0x41aa08
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x4c]
call fcn.004030f0
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x50]
mov ecx, 0x41aa08
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x50]
call fcn.004030f0
push eax
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x41a8e3
mov eax, dword [0x42c438]
cmp byte [eax], 0
je 0x41a8e3
mov eax, dword [0x42c3fc]
mov edx, 0x41aa18
call fcn.00403280
call fcn.00401f8c
call fcn.00401350
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416e68
jmp 0x41a97a
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x41a969
lea eax, [ebp - 0x54]
mov ecx, 0x41aa08
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x54]
call fcn.004030f0
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x58]
mov ecx, 0x41aa08
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x58]
call fcn.004030f0
push eax
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x41a969
mov eax, dword [0x42c438]
cmp byte [eax], 0
je 0x41a969
mov eax, dword [0x42c3fc]
mov edx, 0x41aa18
call fcn.00403280
call fcn.00401f8c
call fcn.00401350
cmp byte [ebp - 6], 0
je 0x41a97a
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a99f
mov eax, dword [ebp - 0xc]
call fcn.00402498
mov eax, dword [ebp - 0x10]
call fcn.00402498
ret