Function at 0x4aaa90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d872d
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x616930]
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 - 0x70], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x1c]
or esi, 0xffffffff
mov dword [ebp - 0x18], eax
mov edi, closesocket
mov eax, dword [ebp + 0x18]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x6c], eax
xor al, al
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], edx
mov byte [ebp - 0x4e], 0
mov byte [ebp - 0x4f], al
mov byte [ebp - 0x61], al
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x54], al
mov dword [ebp - 0x58], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 4], 0
je 0x4aad40
mov eax, dword [ebp + 0x10]
cmp eax, 0xc
jb 0x4ab021
cmp dword [ebp + 8], 0
jne 0x4aab47
push dword [ebp - 0x18]
push edx
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.004a9960
add esp, 0x14
jmp 0x4aac96
xor edi, edi
cmp dword [ebp + 8], 2
jne 0x4aaed5
xor al, al
movlpd qword [ebp - 0x48], xmm0
mov byte [ebp - 0x4d], al
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
test al, al
jne 0x4aac8a
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], al
mov dword [ebp - 0x2c], 0
push edx
push 0xc0000000
push dword [ecx]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
push 0
call fcn.004aa8b0
mov eax, dword [ebp - 0x30]
cmp esi, 0xffffffff
mov edx, dword [ebp - 0x5c]
mov edi, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dl, byte [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x28], dl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 7
je 0x4aabdc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0xffffffff
push dword [ebp - 0x78]
call fcn.005bc50e
add esp, 4
mov byte [ebp - 0x4e], 1
mov byte [ebp - 0x4d], 1
jmp 0x4aac6d
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.004aec60
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x74]
jmp 0x4aab63
xor edi, edi
cmp byte [ebp - 0x4e], 0
je 0x4aaed5
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.004aeb40
push 0xffffffffffffffff
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], 0
push 0
push 0
push 0
push 0xc0000000
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
push eax
movups xmmword [ebp - 0x4c], xmm0
call fcn.004a9190
mov esi, dword [ebp - 0x4c]
mov ecx, 1
mov byte [ebp - 4], 0xc
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4aad23
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x20]
add edx, 8
sub eax, 0
je 0x4aacff
sub eax, 1
je 0x4aad08
sub eax, 1
jne 0x4aad08
test edx, edx
je 0x4aad08
mov eax, dword [ebp + 0x24]
xchg dword [edx], eax
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x4c]
push eax
call fcn.004aea50
mov eax, 2
xchg dword [esi], eax
lea ecx, [ebp - 0x4c]
jmp 0x4aafad
cmp eax, 1
je 0x4ab085
cmp eax, 2
je 0x4ab085
jmp 0x4ab05c
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x4aadbb
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xc0000000
push dword [ecx]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push 1
call fcn.004aa8b0
mov eax, dword [ebp - 0x30]
cmp esi, 0xffffffff
mov dword [ebp - 0x5c], eax
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
je 0x4aadaa
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.005bc50e
add esp, 4
xor edi, edi
jmp 0x4aaed1
cmp eax, 0x80000000
jne 0x4aae4d
push eax
push dword [ecx]
movzx eax, byte [0x623dc4]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004abcb0
mov eax, dword [ebp - 0x24]
mov edx, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
mov esi, eax
mov byte [ebp - 0x4f], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 3
cmp edx, 0xffffffff
je 0x4aae3d
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x4aae3a
push dword [ebp - 0x1c]
call fcn.005bc50e
add esp, 4
xor edi, edi
jmp 0x4aaed1
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005bc50e
add esp, 4
xor edi, edi
jmp 0x4aaed1
xor edi, edi
cmp eax, 0xc0000001
jne 0x4aaed5
movzx eax, byte [0x623dc4]
push closesocket
push dword [ecx]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004abcb0
mov eax, dword [ebp - 0x24]
mov edi, esi
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x24], esi
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
je 0x4aaec3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x4aaec0
push dword [ebp - 0x1c]
jmp 0x4aaec4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005bc50e
add esp, 4
mov edi, 1
mov byte [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4aaff1
lea ecx, [ebp - 0x48]
call fcn.004aec60
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x4aaef0
cmp edx, 1
jne 0x4aaf24
test ecx, ecx
je 0x4ab0d8
cmp byte [ebp - 0x4f], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
je 0x4aaf3f
mov edi, closesocket
jmp 0x4aaf45
add edi, 0xc0000000
push 0xffffffffffffffff
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push 0
push 0
push 0
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.004a9190
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], 0
nop dword [eax]
cmp eax, 1
je 0x4aaf89
test eax, eax
jne 0x4aaf95
lea ecx, [ebp - 0x48]
call fcn.004aec60
mov eax, dword [esi]
jmp 0x4aaf80
cmp eax, 2
jne 0x4ab101
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x38]
push eax
call fcn.004aea50
lea ecx, [ebp - 0x38]
call fcn.004ac440
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 0x13
cmp eax, 0xffffffff
je 0x4aafc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call fcn.005bc50e
add esp, 4
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.005bca10
mov esp, ebp
pop ebp
ret 0x20
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x7c]
call fcn.004ab7c0
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x18c]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0x18c]
push eax
call fcn.005bde57
push 0
push 0x12
lea ecx, [ebp - 0x1c]
call fcn.004ab800
push eax
lea ecx, [ebp - 0xb0]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0xb0]
push eax
call fcn.005bde57
push 0
push 0
call fcn.005bde57
push 0
push 0
call fcn.005bde57
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.004ab800
push eax
lea ecx, [ebp - 0xdc]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0xdc]
push eax
call fcn.005bde57
push 0
push 9
lea ecx, [ebp - 0x1c]
call fcn.004ab800
push eax
lea ecx, [ebp - 0x108]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0x108]
push eax
call fcn.005bde57
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x60]
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
push 0
push 1
push eax
call fcn.004ab200
add esp, 0x10
push 0
push 0
mov dword [ebp - 4], 0xf
call fcn.005bde57
push 0
push 0x13
lea ecx, [ebp - 0x7c]
call fcn.004ab800
push eax
lea ecx, [ebp - 0x134]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0x134]
push eax
call fcn.005bde57
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.004ab800
push eax
lea ecx, [ebp - 0x160]
call fcn.004ab8a0
push 0x5f5e4c
lea eax, [ebp - 0x160]
push eax
call fcn.005bde57
int3