Function at 0x498714
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x49871c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498cb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00402f98
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0040a1d8
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0xc]
call fcn.00498d68
lea eax, [ebp - 0x10]
call fcn.004985e4
lea edx, [ebp - 0x40]
mov eax, 0x498cc8
call fcn.00498dc8
push dword [ebp - 0x40]
lea edx, [ebp - 0x44]
mov eax, 0x498cd4
call fcn.00498dc8
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 0x498ce0
call fcn.00498dc8
push dword [ebp - 0x48]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405068
lea edx, [ebp - 0x4c]
mov eax, 0x498cf0
call fcn.00498dc8
mov eax, dword [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, 0x498d00
call fcn.00498dc8
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
pop ecx
call fcn.00404ff4
lea edx, [ebp - 0x54]
mov eax, 0x498d14
call fcn.00498dc8
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, 0x498cc8
call fcn.00498dc8
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
pop ecx
call fcn.00404ff4
lea edx, [ebp - 0x5c]
mov eax, 0x498cf0
call fcn.00498dc8
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x60]
mov eax, 0x498d24
call fcn.00498dc8
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x30]
pop ecx
call fcn.00404ff4
lea edx, [ebp - 0x64]
mov eax, 0x498d38
call fcn.00498dc8
mov eax, dword [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, 0x498d48
call fcn.00498dc8
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x34]
pop ecx
call fcn.00404ff4
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x6c]
call fcn.00409fe4
test al, al
je 0x498970
push 0
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov ecx, dword [ebp - 0x70]
mov dl, 1
mov eax, dword [0x41b1e8]
call fcn.004207d0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4988cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00402b50
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00420454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988d6
mov eax, dword [ebp - 0x14]
call fcn.00403e98
ret
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x7c]
call fcn.00409fe4
test al, al
je 0x4989c6
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x84]
pop edx
call fcn.00498004
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x4989c6
mov byte [ebp - 6], 1
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x88]
call fcn.00409fe4
test al, al
je 0x498b1c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x90]
pop edx
call fcn.00498004
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x498b1c
mov byte [ebp - 6], 1
mov eax, dword [0x535d18]
cmp dword [eax], 5
jle 0x498ab1
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x94]
call fcn.00409fe4
test al, al
jne 0x498ab1
push 0
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x98]
call fcn.004051a8
push eax
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x9c]
call fcn.004051a8
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x535d18]
cmp dword [eax], 6
jge 0x498b1c
lea eax, [ebp - 0xa0]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0xa0]
call fcn.00409fe4
test al, al
jne 0x498b1c
push 0
lea eax, [ebp - 0xa4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0xa4]
call fcn.004051a8
push eax
lea eax, [ebp - 0xa8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0xa8]
call fcn.004051a8
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0xac]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0xac]
call fcn.00409fe4
test al, al
je 0x498c20
push 0x1e
call sub.kernel32.dll_Sleep
mov eax, dword [0x535d18]
cmp dword [eax], 5
jle 0x498be4
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0xb4]
pop edx
call fcn.00498004
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x498c20
mov byte [ebp - 6], 1
push 1
push 0x498d58
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push 0x498d64
lea edx, [ebp - 0xbc]
mov al, byte [ebp - 5]
call fcn.004984b8
push dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
mov edx, 5
call fcn.00405068
mov eax, dword [ebp - 0xb8]
call fcn.004051a8
push eax
call sub.kernel32.dll_WinExec
jmp 0x498c20
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004980b8
lea eax, [ebp - 0xc8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0xc8]
call fcn.00409fe4
test al, al
je 0x498c86
mov eax, dword [0x535d18]
cmp dword [eax], 5
jle 0x498c86
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd0]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004980b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498cb8
lea eax, [ebp - 0xd0]
mov edx, 0x2c
call fcn.00404d0c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404d0c
ret