Function at 0x49737c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x497384
push ecx
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497806
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00402f98
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040a1b8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.00497894
lea eax, [ebp - 0x10]
call fcn.0049725c
lea edx, [ebp - 0x20]
mov eax, 0x49781c
call fcn.004978e4
lea edx, [ebp - 0x24]
mov eax, 0x497830
call fcn.004978e4
lea edx, [ebp - 0x28]
mov eax, 0x497848
call fcn.004978e4
lea edx, [ebp - 0x2c]
mov eax, 0x497858
call fcn.004978e4
lea edx, [ebp - 0x30]
mov eax, 0x497870
call fcn.004978e4
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x3c]
call fcn.00409fc4
test al, al
je 0x497532
push 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x41b0fc]
call fcn.004206e4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x497493
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.00420368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49749a
mov eax, dword [ebp - 0x14]
call fcn.00403e98
ret
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x4c]
call fcn.00409fc4
test al, al
je 0x49757b
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x54]
pop edx
call fcn.00496d30
test al, al
je 0x49757b
mov bl, 1
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x58]
call fcn.00409fc4
test al, al
je 0x497694
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 - 0x5c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x60]
pop edx
call fcn.00496d30
test al, al
je 0x497694
mov bl, 1
mov eax, dword [0x532c70]
cmp dword [eax], 5
jle 0x49763b
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x64]
call fcn.00409fc4
test al, al
jne 0x49763b
push 0
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x68]
call fcn.004051a8
push eax
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x6c]
call fcn.004051a8
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x532c70]
cmp dword [eax], 6
jge 0x497694
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x70]
call fcn.00409fc4
test al, al
jne 0x497694
push 0
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x74]
call fcn.004051a8
push eax
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x78]
call fcn.004051a8
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x7c]
call fcn.00409fc4
test al, al
je 0x497775
push 5
call sub.kernel32.dll_Sleep
mov eax, dword [0x532c70]
cmp dword [eax], 5
jle 0x497739
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x84]
pop edx
call fcn.00496d30
test al, al
je 0x497775
mov bl, 1
push 1
push 0x497884
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push 0x497890
xor eax, eax
mov al, byte [ebp - 5]
push dword [eax*4 + 0x531de0]
lea eax, [ebp - 0x88]
mov edx, 5
call fcn.00405068
mov eax, dword [ebp - 0x88]
call fcn.004051a8
push eax
call sub.kernel32.dll_WinExec
jmp 0x497775
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00496dd4
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov eax, dword [ebp - 0x94]
call fcn.00409fc4
test al, al
je 0x4977db
mov eax, dword [0x532c70]
cmp dword [eax], 5
jle 0x4977db
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404ff4
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404ff4
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00496dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49780d
lea eax, [ebp - 0x9c]
mov edx, 0x20
call fcn.00404d0c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404d0c
ret