Function at 0x414770
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9962
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
mov dword [ebp - 0x14], 0
mov edi, ecx
push 0xffffffffffffff83
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xd], 0
call fcn.00461130
sub esp, 0x18
mov byte [ebp - 0xf], al
mov edx, esp
mov byte [ebp - 0xe], al
xorps xmm0, xmm0
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0xe]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4147d0
sub ecx, esi
lea eax, [ebp - 0xe]
push ecx
push eax
mov ecx, edx
call fcn.00402aa0
mov dword [ebp - 4], 0
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x20], 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 0x414810
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402aa0
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0040bd90
add esp, 0x30
mov dword [ebp - 4], 2
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x50]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0xc
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [esi + eax*8]
mov dword [ebp - 0x18], eax
call fcn.0040bfe0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
mov al, byte [ebp - 0xf]
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe]
mov edx, dword [0x539c2c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414892
mov eax, closesocket
sub ecx, esi
sub eax, edx
cmp eax, ecx
jb 0x414a6c
cmp dword [0x539c30], 0x10
mov eax, 0x539c1c
push ecx
cmovae eax, dword [0x539c1c]
lea ecx, [ebp - 0xe]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.004680d0
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x90]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x18]
call fcn.00467f00
push dword [ebp - 0x18]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x38]
call fcn.004643a0
add esp, 4
mov byte [ebp - 4], 6
mov esi, 3
mov dword [ebp - 0x14], esi
and esi, 0xfffffffd
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.00402890
and esi, 0xfffffffe
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
call fcn.00402890
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00402890
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41498a
cmp dword [ebp - 0x24], 0x10
lea edx, [ebp - 0x38]
mov ecx, edi
cmovae edx, dword [ebp - 0x38]
call fcn.00414750
test al, al
jne 0x41498a
mov edx, dword [ebp - 0x1c]
mov ecx, edi
call fcn.004b8e80
mov esi, eax
jmp 0x414a3f
push 0x53bfa8
call fcn.004ba2b2
add esp, 4
test eax, eax
jne 0x414a71
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
mov edi, dword [ebp - 0x1c]
mov edx, edi
cmovae ecx, dword [ebp - 0x38]
sub esp, 8
call fcn.004b8e90
add esp, 8
lea ecx, [ebp - 0x54]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045fe50
mov byte [ebp - 4], 0xa
mov ecx, dword [edi]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0xb
mov eax, dword [0x53c094]
cmp eax, dword [0x53c098]
je 0x414a1c
movups xmm0, xmmword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x54], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 4], 0xc
mov dword [eax + 0x18], ecx
mov byte [ebp - 4], 0xb
add dword [0x53c094], 0x1c
jmp 0x414a26
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.0046cd50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.00402890
push 0x53bfa8
call fcn.004ba2c3
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00402890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00461d40
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402210
push eax
call fcn.004b9f5b
int3