Function at 0x4f5338
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff914
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6ec], ebx
mov dword [ebp - 0x6e8], ebx
mov dword [ebp - 0x6e4], ebx
mov dword [ebp - 0x6e0], ebx
mov dword [ebp - 0x6dc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404100
mov eax, dword [ebp - 0xc]
call fcn.00404100
xor eax, eax
push ebp
push 0x4f5b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00409718
test al, al
je 0x4f54d9
mov eax, dword [ebp - 0xc]
call fcn.00409728
cmp eax, 0xffffffff
je 0x4f53dc
and eax, 1
dec eax
jne 0x4f53dc
push 0
mov ecx, 0x4f5b94
mov edx, 0x4f5ba0
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00453df0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004f0540
jmp 0x4f5b50
xor eax, eax
push ebp
push 0x4f5470
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50b4bc]
mov byte [eax], 2
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x58c]
call fcn.0040649a
mov edx, 1
lea eax, [ebp - 0x58c]
call fcn.004069d1
call fcn.00402874
lea eax, [ebp - 0x58c]
call fcn.0040670c
call fcn.00402874
mov edx, eax
lea eax, [ebp - 0x58c]
call fcn.00406a08
call fcn.00402874
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 0x18]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
lea eax, [ebp - 0x58c]
call fcn.00406604
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f54d9
lea eax, [ebp - 0x6dc]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404154
lea eax, [ebp - 0x6dc]
mov edx, 0x4f5bfc
call fcn.00403f54
mov eax, dword [ebp - 0x6dc]
call fcn.00404110
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x30]
call fcn.004be930
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0c]
mov eax, dword [eax + 0x254]
call fcn.004637d0
mov esi, eax
dec esi
test esi, esi
jl 0x4f55b7
inc esi
xor ecx, ecx
mov ebx, ecx
shl ebx, 3
sub ebx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov eax, dword [eax + ebx*8 + 0x10]
cdq
add eax, dword [ebp - 0x40]
adc edx, dword [ebp - 0x3c]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov eax, dword [eax + ebx*8 + 8]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov eax, dword [eax + ebx*8 + 0x1c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov eax, dword [eax + ebx*8 + 0x24]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
inc ecx
dec esi
jne 0x4f5544
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, 0x1e00000
adc edx, 0
cmp edx, dword [ebp - 0x34]
jne 0x4f55d1
cmp eax, dword [ebp - 0x38]
jbe 0x4f5621
jmp 0x4f55d3
jle 0x4f5621
push 0
lea eax, [ebp - 0x6e0]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404154
lea eax, [ebp - 0x6e0]
mov edx, 0x4f5c08
call fcn.00403f54
mov eax, dword [ebp - 0x6e0]
call fcn.00404110
mov edx, eax
mov ecx, 0x4f5b94
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00453df0
jmp 0x4f5b50
mov bl, 0xd
mov eax, dword [ebp - 8]
call fcn.00409718
test al, al
jne 0x4f563e
lea edx, [ebp - 8]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x58c]
call fcn.0040649a
mov eax, dword [0x50b4bc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x58c]
call fcn.004069d1
call fcn.00402874
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x58c]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x18]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.0040653c
call fcn.00402874
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.0040653c
call fcn.00402874
lea eax, [ebp - 0x58c]
call fcn.00406604
call fcn.00402874
mov eax, dword [ebp - 4]
push dword [eax + 0x1555c]
mov eax, dword [ebp - 4]
push dword [eax + 0x155ac]
push 0x4f5c30
lea edx, [ebp - 0x6e4]
mov eax, dword [ebp - 8]
call fcn.00409830
push dword [ebp - 0x6e4]
push 0x4f5c3c
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.0040400c
call fcn.00402a7c
mov eax, 4
call fcn.00402c9c
cmp eax, 3
jne 0x4f5741
push 0x3a2
lea edx, [ebp - 0x6e8]
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00454160
mov edx, dword [ebp - 0x6e8]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004f4f5c
mov eax, dword [ebp - 4]
mov bl, byte [eax + 0x1443c]
cmp dword [ebp - 0x14], 0x100
jle 0x4f5831
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x58c]
call fcn.0040649a
mov eax, dword [0x50b4bc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x58c]
call fcn.004069d1
call fcn.00402874
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x6d8]
call fcn.0040649a
mov edx, 1
lea eax, [ebp - 0x6d8]
call fcn.004069e8
call fcn.00402874
xor esi, esi
cmp esi, dword [ebp - 0x14]
jge 0x4f580f
mov eax, dword [ebp - 0x14]
sub eax, esi
cmp eax, 0x400
jle 0x4f57d0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x440]
mov ecx, 0x400
lea eax, [ebp - 0x58c]
call fcn.0040653c
call fcn.00402874
jmp 0x4f57ec
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
lea edx, [ebp - 0x440]
lea eax, [ebp - 0x58c]
call fcn.0040653c
call fcn.00402874
push 0
lea edx, [ebp - 0x440]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x6d8]
call fcn.004065a0
call fcn.00402874
add esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x14]
jl 0x4f57a3
lea eax, [ebp - 0x58c]
call fcn.00406604
call fcn.00402874
lea eax, [ebp - 0x6d8]
call fcn.00406604
call fcn.00402874
jmp 0x4f589c
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404110
push eax
mov eax, dword [ebp - 8]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4f589c
lea eax, [ebp - 0x24]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404154
push 0
lea eax, [ebp - 0x6ec]
mov ecx, 0x4f5c48
mov edx, dword [ebp - 0x24]
call fcn.00403f98
mov eax, dword [ebp - 0x6ec]
call fcn.00404110
mov edx, eax
mov ecx, 0x4f5b94
mov eax, dword [0x50b418]
mov eax, dword [eax]
call fcn.00453df0
jmp 0x4f5b50
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x58c]
call fcn.0040649a
mov eax, dword [0x50b4bc]
mov byte [eax], 2
mov edx, 1
lea eax, [ebp - 0x58c]
call fcn.004069d1
call fcn.00402874
mov byte [ebp - 0x440], 0
mov edx, 0x21
lea eax, [ebp - 0x58c]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x440]
mov ecx, 1
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
mov byte [ebp - 0x440], 0x4d
mov byte [ebp - 0x43f], 0x5a
mov byte [ebp - 0x43e], 0x5d
mov byte [ebp - 0x43d], 0
xor edx, edx
lea eax, [ebp - 0x58c]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x440]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
lea eax, [ebp - 0x58c]
call fcn.0040670c
call fcn.00402874
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58c]
call fcn.00406604
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x148d0]
call fcn.00409718
test al, al
je 0x4f59d0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x148d0]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00501c64
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.0040405c
je 0x4f59e9
mov eax, dword [ebp - 0x24]
call fcn.00409718
test al, al
je 0x4f59e9
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4f59e9
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0x10]
call fcn.00409764
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5c]
cmp byte [eax + 0x47], 1
jne 0x4f5a31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14fe0]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp byte [edx + eax*8 + 0xe], 0
jne 0x4f5a31
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14fe0]
mov eax, dword [ebp - 4]
call fcn.004f30f0
mov ecx, 2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f5c94
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004dcb34
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x58c]
call fcn.0040649a
mov eax, dword [0x50b4bc]
mov byte [eax], 2
mov edx, 1
lea eax, [ebp - 0x58c]
call fcn.004069d1
call fcn.00402874
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x58c]
call fcn.00406a08
call fcn.00402874
call fcn.00402a7c
mov eax, 0x152
call fcn.00402c9c
add eax, 0x159
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 0x18]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
mov eax, 0x50
call fcn.00402c9c
add eax, 0x43
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 0x18]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x1c]
mov ecx, 4
lea eax, [ebp - 0x58c]
call fcn.004065a0
call fcn.00402874
lea eax, [ebp - 0x58c]
call fcn.00406604
call fcn.00402874
cmp bl, 0xd
jne 0x4f5b50
push 0x3a2
push 0
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d9d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5b8a
lea eax, [ebp - 0x6ec]
mov edx, 5
call fcn.00403cf0
lea eax, [ebp - 0x24]
call fcn.00403ccc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403cf0
ret