Function at 0x490ba0
Capabilities:
Get file size
Read file on windows

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 0x5521e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x188
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ecx
mov dword [ebp - 0x84], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4912e8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x34], eax
call fcn.004338f1
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
push dword [ebp - 0x34]
push 0
push edi
call fcn.004359a0
add esp, 0xc
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 0
push eax
push dword [ebp - 0x34]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x490c65
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00433922
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], 0xd0
xorps xmm0, xmm0
mov ecx, dword [ebx + 8]
setne al
mov byte [ecx], al
xor al, al
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x12], al
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x34], esi
jbe 0x4912d0
mov cl, byte [esi + edi]
mov byte [ebp - 0x11], cl
cmp cl, 0x20
jbe 0x4912b4
cmp cl, 0x7f
jae 0x4912b4
cmp cl, 0x3d
je 0x4912b4
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x80], esi
cmp edi, esi
jae 0x490d01
lea eax, [edi + 1]
cmp esi, 0xf
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov byte [eax + edi], cl
mov byte [eax + edi + 1], 0
jmp 0x490de4
mov eax, closesocket
sub eax, edi
cmp eax, 1
jb 0x4913de
lea ecx, [edi + 1]
or ecx, 0xf
mov dword [ebp - 0x194], ecx
cmp ecx, 0x7fffffff
jbe 0x490d2c
mov ecx, closesocket
jmp 0x490d50
mov edx, esi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x490d42
mov ecx, closesocket
jmp 0x490d50
lea eax, [esi + edx]
cmp ecx, eax
mov dword [ebp - 0x198], eax
cmovb ecx, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004032d0
lea ecx, [edi + 1]
mov dword [ebp - 0x48], eax
add esp, 8
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], ecx
lea ecx, [edi + eax]
mov dword [ebp - 0x44], ecx
push edi
cmp esi, 0xf
jbe 0x490dc5
mov esi, dword [ebp - 0x30]
push esi
push eax
call fcn.00435260
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov al, byte [ebp - 0x11]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [ebp - 0x80]
inc ecx
cmp ecx, 0x1000
jb 0x490db9
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4913e3
mov esi, edx
push ecx
push esi
call fcn.004338e3
add esp, 8
jmp 0x490dde
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00435260
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov al, byte [ebp - 0x11]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x100]
mov dword [ebp - 0x90], 0xc6e3b7ec
mov dword [ebp - 0x8c], 0xf3b470a4
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x98], 0x61453c76
mov dword [ebp - 0x94], 0xa0df89f8
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xa0], 0xa980d4ad
mov dword [ebp - 0x9c], 0xf3c01ed1
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 0x61453c76
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0xa4], 0xa0df89f8
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
movaps xmm1, xmmword [ebp - 0x100]
mov dword [ebp - 0x154], ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x158], eax
xorps xmm1, xmmword [ebp - 0x160]
movaps xmmword [ebp - 0x100], xmm1
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x490ee0
sub edx, ecx
lea eax, [ebp - 0x100]
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
push edx
cmova ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push eax
push 0
call fcn.0041c7e0
add esp, 0xc
test eax, eax
je 0x491273
mov dword [ebp - 0x140], 0x9ad09bfd
lea edx, [ebp - 0x110]
mov dword [ebp - 0x13c], 0x9ca37d90
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x138], 0x61315203
mov dword [ebp - 0x134], 0xa0df89f8
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x148], 0xa980d4ad
mov dword [ebp - 0x144], 0xf3c01ed1
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xb0], 0x61453c76
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0xac], 0xa0df89f8
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xac]
movaps xmm1, xmmword [ebp - 0x110]
mov dword [ebp - 0x164], ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x168], eax
xorps xmm1, xmmword [ebp - 0x170]
movaps xmmword [ebp - 0x110], xmm1
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x490fe0
sub edx, ecx
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
push edx
cmova ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push eax
push 0
call fcn.0041c7e0
add esp, 0xc
test eax, eax
je 0x491273
cmp byte [ebp - 0x12], 0
je 0x491221
mov dword [ebp - 0xb8], 0xdaf3b5fd
lea edx, [ebp - 0x120]
mov dword [ebp - 0xb4], 0x97b271a6
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0xc0], 0x61453c76
mov dword [ebp - 0xbc], 0xa0df89f8
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0xc8], 0xa980d4ad
mov dword [ebp - 0xc4], 0xf3c01ed1
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xd0], 0x61453c76
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0xcc], 0xa0df89f8
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
movaps xmm1, xmmword [ebp - 0x120]
mov dword [ebp - 0x174], ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x178], eax
xorps xmm1, xmmword [ebp - 0x180]
movaps xmmword [ebp - 0x120], xmm1
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4910f0
sub edx, ecx
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
push edx
cmova ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push eax
push 0
call fcn.0041c7e0
add esp, 0xc
test eax, eax
je 0x4912fb
mov dword [ebp - 0xd8], 0x9ad09bfd
lea edx, [ebp - 0x130]
mov dword [ebp - 0xd4], 0x80b37f81
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0xe0], 0x5375301
mov dword [ebp - 0xdc], 0xa0df89f8
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0xe8], 0xa980d4ad
mov dword [ebp - 0xe4], 0xf3c01ed1
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xf0], 0x61453c76
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0xec], 0xa0df89f8
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xec]
movaps xmm1, xmmword [ebp - 0x130]
mov dword [ebp - 0x184], ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x188], eax
xorps xmm1, xmmword [ebp - 0x190]
movaps xmmword [ebp - 0x130], xmm1
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4911f0
sub edx, ecx
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
push edx
cmova ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push eax
push 0
call fcn.0041c7e0
add esp, 0xc
test eax, eax
je 0x4912fb
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x49125f
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x491255
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4913e3
push ecx
push edx
call fcn.004338e3
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
jmp 0x4912c3
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
cmp byte [ecx], 0
lea esi, [eax + 9]
jne 0x491284
lea esi, [eax + 2]
mov edi, dword [ebp - 0x38]
mov al, byte [esi + edi]
cmp al, 0x20
jbe 0x4912ab
nop
cmp al, 0x7f
jae 0x4912ab
mov byte [ebp - 0x3c], al
lea ecx, [ebp - 0x78]
push dword [ebp - 0x3c]
call fcn.00402e70
mov al, byte [esi + edi + 1]
inc esi
cmp al, 0x20
ja 0x491290
mov byte [ebp - 0x12], 1
jmp 0x491227
push 0
push 0x5629da
lea ecx, [ebp - 0x30]
call fcn.00416130
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x34]
jb 0x490cb6
push edi
call fcn.00433922
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402df0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
cmp byte [ecx], 0
lea esi, [eax + 9]
jne 0x49130c
lea esi, [eax + 2]
xor edx, edx
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], edx
mov ecx, 0xf
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x60], dl
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x38]
add esi, edi
mov al, byte [esi]
cmp al, 0x20
jbe 0x491360
cmp al, 0x7f
jae 0x49135a
mov byte [ebp - 0x3c], al
lea ecx, [ebp - 0x60]
push dword [ebp - 0x3c]
call fcn.00402e70
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x491340
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x60]
cmp esi, eax
je 0x491380
cmp ecx, 0xf
mov ecx, esi
push edx
cmova eax, dword [ebp - 0x60]
push eax
call fcn.00416130
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x4913b1
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4913a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4913e3
push ecx
push edx
call fcn.004338e3
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
jmp 0x4912d0
call fcn.00402c60
call fcn.00438c60
int3