Function at 0x4d6790
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xd8
push esi
push edi
mov dword [ebp - 0x20], edx
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0xdf9be3c9
mov dword [ebp - 0x14], 0xf940fadb
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x18], 0x7dbb92e6
mov dword [ebp - 0x14], 0x14d846fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub esp, 0x18
mov dword [ebp - 0x54], ecx
mov edx, esp
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0xdf9be395
mov dword [ebp - 0x14], 0xf940fadb
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x7dbb92e6
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0x14d846fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
movaps xmm1, xmmword [ebp - 0x60]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x28], eax
lea esi, [ecx + 1]
xorps xmm1, xmmword [ebp - 0x30]
movups xmmword [edx], xmm0
movaps xmmword [ebp - 0x60], xmm1
mov dword [ebp - 0x9c], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d6870
sub ecx, esi
lea eax, [ebp - 0x60]
push ecx
push eax
mov ecx, edx
call fcn.00403040
mov dword [ebp - 4], 0
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x14], esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
lea esi, [ecx + 1]
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d68b0
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00403040
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004e64d0
add esp, 0x30
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
test eax, eax
je 0x4d6a4c
lea eax, [eax + eax*2]
mov edx, 0xc
lea eax, [eax - 3]
lea edi, [ecx + eax*8]
lea ecx, [ebp - 0xe8]
call fcn.004e63a0
mov esi, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0xdf9be3c9
mov dword [ebp - 0x14], 0xf940fadb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
mov edx, 0x586dd4
mov dword [ebp - 0x18], 0x7dbb92e6
mov dword [ebp - 0x14], 0x14d846fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x18], 0xdf9be395
mov dword [ebp - 0x14], 0xf940fadb
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0x7dbb92e6
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0x14d846fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
movaps xmm1, xmmword [ebp - 0x70]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xd0]
xorps xmm1, xmmword [ebp - 0x30]
push eax
movaps xmmword [ebp - 0x70], xmm1
call fcn.0041ab20
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb8]
push esi
push eax
push dword [ebp - 0x14]
call fcn.0041e710
push edi
lea edx, [ebp - 0xb8]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x48]
call fcn.0041ad80
add esp, 4
mov byte [ebp - 4], 6
mov eax, 1
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb8]
call fcn.00402df0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd0]
call fcn.00402df0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.00402df0
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
cmova eax, dword [ebp - 0x48]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4d6a82
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov ecx, edi
cmova edx, dword [ebp - 0x48]
call fcn.004d6ba0
test al, al
jne 0x4d6a82
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402df0
mov edx, dword [ebp - 0x20]
push ecx
push 6
mov ecx, edi
call fcn.004fad00
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004185d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x589228
mov dword [ebp - 0xa0], 0x589228
call fcn.00432b99
add esp, 4
test eax, eax
jne 0x4d6b82
cmp dword [0x589254], 0x7fffffff
je 0x4d6b89
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0xf
mov edi, dword [ebp - 0x20]
mov edx, edi
cmova ecx, dword [ebp - 0x48]
push ecx
push 1
call fcn.004fad00
add esp, 8
lea ecx, [ebp - 0x98]
mov esi, eax
lea eax, [ebp - 0x48]
push eax
call fcn.004163b0
mov byte [ebp - 4], 0xb
mov ecx, dword [edi]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 0xc
mov eax, dword [0x589350]
cmp eax, dword [0x589354]
je 0x4d6b44
movups xmm0, xmmword [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x98], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x88]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 4], 0xd
mov dword [eax + 0x18], ecx
mov byte [ebp - 4], 0xc
add dword [0x589350], 0x1c
jmp 0x4d6b51
lea ecx, [ebp - 0x98]
push ecx
push eax
call fcn.00423a30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.00402df0
mov byte [ebp - 4], 9
push 0x589228
call fcn.00432baa
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402df0
jmp 0x4d6a5e
push 5
call fcn.00432534
push 6
mov dword [0x589254], 0x7ffffffe
call fcn.00432534
int3