Function at 0x4a9570
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x59b000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0xf0], eax
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf4], eax
xor al, al
movdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x104], edi
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 0xe7], 0
mov byte [ebp - 0xe8], al
mov byte [ebp - 0xea], al
mov byte [ebp - 0xe6], al
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], getpeername
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp eax, 1
je 0x4a9917
mov esi, dword [ebp + 0x10]
cmp esi, 0xc
jae 0x4a9662
push 0
lea eax, [ebp - 0x100]
mov dword [ebp - 0x100], 0
push eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xfc], 0x12
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x184]
push eax
call fcn.0054a9a1
test eax, eax
jne 0x4a967d
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push ecx
push esi
push edi
push eax
call fcn.004a9160
add esp, 0x14
jmp 0x4a97db
cmp eax, 2
jne 0x4a9a0b
xor al, al
movlpd qword [ebp - 0x140], xmm0
mov byte [ebp - 0xe5], al
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
lea ebx, [ebx]
test al, al
jne 0x4a97ce
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push ecx
push esi
push edi
push eax
call fcn.004a9160
add esp, 0x14
mov byte [ebp - 0xe7], 1
mov byte [ebp - 0xe5], 1
jmp 0x4a97ab
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0
call fcn.004af450
mov al, byte [ebp - 0xe5]
mov ecx, dword [ebp - 0xfc]
jmp 0x4a96b0
cmp byte [ebp - 0xe7], 0
je 0x4a9a0b
push 0
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.004aeeb0
push 0xffffffffffffffff
push dword [ebp - 0xf4]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push 0
push 0
push 0xc0000000
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
push eax
movdqu xmmword [ebp - 0x50], xmm0
call fcn.004a88e0
mov esi, dword [ebp - 0x50]
mov ecx, 1
mov byte [ebp - 4], 0xa
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4a9872
mov eax, dword [ebp + 0x20]
sub eax, 0
je 0x4a983c
dec eax
je 0x4a9849
dec eax
jne 0x4a9849
mov edx, dword [ebp - 0x50]
add edx, 8
je 0x4a9849
mov eax, dword [ebp + 0x24]
xchg dword [edx], eax
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0x50]
push eax
call fcn.004aec80
mov dword [ebp - 4], 0xa
mov eax, 2
xchg dword [esi], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
jmp 0x4a9b7c
cmp eax, 1
je 0x4a98b5
cmp eax, 2
je 0x4a98b5
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x104], 0x13
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x1dc]
push eax
call fcn.0054a9a1
push 0
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0xf4], 9
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x234]
push eax
call fcn.0054a9a1
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x3c]
push 0
push 1
mov byte [ebp - 4], 0xe
call fcn.004aeeb0
push 0
push 0
mov dword [ebp - 4], 0xd
call fcn.0054a9a1
mov eax, 0x4a9901
ret
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x4a9965
push eax
push dword [edi]
movzx eax, byte [0x5a17ad]
lea ecx, [ebp - 0xa4]
push eax
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmmword [ebp - 0x94], xmm0
call fcn.004aa390
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa4]
call fcn.004aecd0
lea ecx, [ebp - 0xa4]
jmp 0x4a9a02
cmp eax, 0x80000000
jne 0x4a99b1
push eax
push dword [edi]
movzx eax, byte [0x5a17ad]
lea ecx, [ebp - 0x84]
push eax
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmmword [ebp - 0x74], xmm0
call fcn.004aa390
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x84]
call fcn.004aecd0
mov byte [ebp - 0xe8], 1
lea ecx, [ebp - 0x84]
jmp 0x4a9a02
cmp eax, 0xc0000001
jne 0x4a9a0b
movzx eax, byte [0x5a17ad]
lea ecx, [ebp - 0xe4]
push closesocket
push dword [edi]
movdqu xmmword [ebp - 0xe4], xmm0
push eax
movdqu xmmword [ebp - 0xd4], xmm0
call fcn.004aa390
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xe4]
call fcn.004aecd0
mov byte [ebp - 0xe6], 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0
call fcn.004aabb0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x154], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x3c]
call esi
test eax, eax
je 0x4a9bae
lea ecx, [ebp - 0x154]
call fcn.004af450
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x4a9a35
cmp edx, 1
jne 0x4a9a9a
test ecx, ecx
jne 0x4a9a9a
push ecx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], ecx
push eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x114], 0x13
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x1b0]
push eax
call fcn.0054a9a1
cmp byte [ebp - 0xe8], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
je 0x4a9ab9
mov eax, closesocket
jmp 0x4a9ac9
xor eax, eax
cmp byte [ebp - 0xe6], al
setne al
add eax, 0xc0000000
push 0xffffffffffffffff
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x64]
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a88e0
mov esi, dword [ebp - 0x64]
mov byte [ebp - 4], 0x10
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
movlpd qword [ebp - 0x130], xmm0
mov dword [ebp - 0x124], 0
lea esp, [esp]
cmp eax, 1
je 0x4a9b19
test eax, eax
jne 0x4a9b28
lea ecx, [ebp - 0x130]
call fcn.004af450
mov eax, dword [esi]
jmp 0x4a9b10
cmp eax, 2
je 0x4a9b66
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x10c], 0x13
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x208]
push eax
call fcn.0054a9a1
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0x64]
push eax
call fcn.004aec80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004aab50
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.004aabb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054a992
mov esp, ebp
pop ebp
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x120]
call fcn.004aa030
push 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x260]
call fcn.004aa070
push 0x584500
lea eax, [ebp - 0x260]
push eax
call fcn.0054a9a1
int3