Function at 0x40799d
Capabilities:
Copy file

Disassembly:
push 0x44
mov eax, 0x4a1ea6
call fcn.00481d3a
xor ebx, ebx
xor esi, esi
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040161b
mov dword [ebp - 4], ebx
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x18]
call fcn.0040161b
mov byte [ebp - 4], 1
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x10]
call fcn.0040161b
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00460a83
mov byte [ebp - 4], 3
call fcn.0042dd8d
mov dword [ebp - 0x34], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
cmp dword [0x4efe78], ebx
je 0x407c0c
push 0x4ed7f0
lea ecx, [ebp - 0x14]
call fcn.004014c5
push str.ksg_
lea ecx, [ebp - 0x14]
call fcn.00401250
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004015ba
push 0x4ad078
lea ecx, [ebp - 0x18]
call fcn.00401250
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.00460b11
cmp eax, ebx
je 0x407ac1
lea ecx, [ebp - 0x50]
call fcn.00460910
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.00460a46
test eax, eax
jne 0x407abd
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.00460da1
mov byte [ebp - 4], 5
push dword [eax]
lea ecx, [ebp - 0x1c]
call fcn.00401640
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00407cd0
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401325
cmp esi, ebx
jne 0x407a61
lea ecx, [ebp - 0x50]
call fcn.00460840
call fcn.00428e38
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00401640
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0042e810
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
mov esi, dword [0x4efe78]
jmp 0x407b80
cmp dword [esi + 0x768], ebx
je 0x407b4a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004015ba
lea edi, [esi + 0xcc]
push edi
lea ecx, [ebp - 0x10]
call fcn.00401250
mov eax, dword [esi + 0x760]
push ebx
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
je 0x407b4a
push dword [ebp - 0x10]
push edi
push 0x1f
push 0x4ef184
call fcn.0042a517
add esp, 0x10
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401640
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.00407cd0
mov dword [eax], 1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
mov esi, dword [esi]
cmp esi, ebx
jne 0x407aff
call fcn.00428e69
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0042d000
test al, al
jne 0x407c09
call fcn.00407dc1
cmp dword [eax + 4], ebx
jne 0x407bff
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004015ba
call fcn.00407dc1
push eax
lea ecx, [ebp - 0x10]
call fcn.00404637
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00401640
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00402a47
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
lea esi, [ebp - 0x24]
call fcn.00432b0d
jmp 0x407ba0
xor esi, esi
inc esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00407d8c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00460aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, esi
call fcn.00481e12
ret