Function at 0x4186e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418a37
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0x18], 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 0x418a07
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
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4186c4]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00414ca4
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0xc]
call fcn.00414ca4
mov esi, eax
mov eax, dword [ebx + 7]
call fcn.00403b14
test eax, eax
jle 0x4187fe
mov eax, dword [ebx + 7]
call fcn.00403b1c
mov edx, dword [ebx + 7]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x1c]
jge 0x4187fe
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4186c4]
call fcn.00403cd0
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx]
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0x14]
lea edx, [eax + esi]
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.00414e24
mov byte [ebp - 0x1d], 0
cmp byte [ebx + 2], 0
je 0x4188aa
mov eax, dword [ebx + 7]
call fcn.00403b1c
test eax, eax
jl 0x4188e8
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
cmp byte [ebp - 0x1d], 0
jne 0x41883c
mov eax, dword [ebx + 7]
mov eax, dword [eax + esi*8]
mov edx, dword [ebp - 0x14]
mov al, byte [edx + eax]
mov edx, dword [ebx + 0xb]
cmp al, byte [edx + esi]
jne 0x418864
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
jmp 0x41889e
push 0x34
mov ecx, 0x418a4c
mov edx, 0x418a54
mov eax, dword [0x42519c]
mov eax, dword [eax]
call fcn.00417c28
cmp eax, 6
jne 0x418887
mov byte [ebp - 0x1d], 1
jmp 0x41883c
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x418abc
call fcn.00417be8
jmp 0x4189e9
inc esi
dec dword [ebp - 0x24]
jne 0x418822
jmp 0x4188e8
mov eax, dword [ebx + 7]
call fcn.00403b1c
test eax, eax
jl 0x4188e8
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
dec dword [ebp - 0x24]
jne 0x4188bc
cmp dword [ebp - 0x18], 0
je 0x4188fd
mov eax, dword [ebx + 7]
call fcn.00403b14
cmp eax, dword [ebp - 0x18]
sete byte [ebp - 6]
cmp byte [ebp + 8], 0
je 0x418973
cmp byte [ebp - 5], 0
je 0x418966
lea eax, [ebp - 0x28]
mov ecx, 0x418afc
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x28]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x2c]
mov ecx, 0x418afc
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x2c]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x418966
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x418b0c
call fcn.00417be8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0041505c
jmp 0x4189e9
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x4189d8
lea eax, [ebp - 0x30]
mov ecx, 0x418afc
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x30]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x418afc
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x34]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4189d8
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x418b0c
call fcn.00417be8
cmp byte [ebp - 6], 0
je 0x4189e9
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 0x418a0e
mov eax, dword [ebp - 0xc]
call fcn.004025a0
mov eax, dword [ebp - 0x10]
call fcn.004025a0
ret