Function at 0x493080
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 0x55512e
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 0x4937c8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x34], eax
call fcn.00433901
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
push dword [ebp - 0x34]
push 0
push edi
call fcn.004359b0
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 0x493145
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00433932
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 0x4937b0
mov cl, byte [esi + edi]
mov byte [ebp - 0x11], cl
cmp cl, 0x20
jbe 0x493794
cmp cl, 0x7f
jae 0x493794
cmp cl, 0x3d
je 0x493794
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x80], esi
cmp edi, esi
jae 0x4931e1
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 0x4932c4
mov eax, closesocket
sub eax, edi
cmp eax, 1
jb 0x4938be
lea ecx, [edi + 1]
or ecx, 0xf
mov dword [ebp - 0x194], ecx
cmp ecx, 0x7fffffff
jbe 0x49320c
mov ecx, closesocket
jmp 0x493230
mov edx, esi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x493222
mov ecx, closesocket
jmp 0x493230
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 0x4932a5
mov esi, dword [ebp - 0x30]
push esi
push eax
call fcn.00435270
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 0x493299
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4938c3
mov esi, edx
push ecx
push esi
call fcn.004338f3
add esp, 8
jmp 0x4932be
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00435270
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], 0xb0f880d4
mov dword [ebp - 0x8c], 0xf93494ae
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x98], 0x7dbb92e6
mov dword [ebp - 0x94], 0x14d846fe
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xa0], 0xdf9be395
mov dword [ebp - 0x9c], 0xf940fadb
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 0x7dbb92e6
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0xa4], 0x14d846fe
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 0x4933c0
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 0x493753
mov dword [ebp - 0x140], 0xeccbacc5
lea edx, [ebp - 0x110]
mov dword [ebp - 0x13c], 0x9623999a
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x138], 0x7dcffc93
mov dword [ebp - 0x134], 0x14d846fe
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x148], 0xdf9be395
mov dword [ebp - 0x144], 0xf940fadb
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xb0], 0x7dbb92e6
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0xac], 0x14d846fe
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 0x4934c0
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 0x493753
cmp byte [ebp - 0x12], 0
je 0x493701
mov dword [ebp - 0xb8], 0xace882c5
lea edx, [ebp - 0x120]
mov dword [ebp - 0xb4], 0x9d3295ac
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0xc0], 0x7dbb92e6
mov dword [ebp - 0xbc], 0x14d846fe
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0xc8], 0xdf9be395
mov dword [ebp - 0xc4], 0xf940fadb
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xd0], 0x7dbb92e6
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0xcc], 0x14d846fe
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 0x4935d0
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 0x4937db
mov dword [ebp - 0xd8], 0xeccbacc5
lea edx, [ebp - 0x130]
mov dword [ebp - 0xd4], 0x8a339b8b
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0xe0], 0x19c9fd91
mov dword [ebp - 0xdc], 0x14d846fe
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0xe8], 0xdf9be395
mov dword [ebp - 0xe4], 0xf940fadb
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xf0], 0x7dbb92e6
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0xec], 0x14d846fe
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 0x4936d0
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 0x4937db
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x49373f
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x493735
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4938c3
push ecx
push edx
call fcn.004338f3
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
jmp 0x4937a3
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
cmp byte [ecx], 0
lea esi, [eax + 9]
jne 0x493764
lea esi, [eax + 2]
mov edi, dword [ebp - 0x38]
mov al, byte [esi + edi]
cmp al, 0x20
jbe 0x49378b
nop
cmp al, 0x7f
jae 0x49378b
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 0x493770
mov byte [ebp - 0x12], 1
jmp 0x493707
push 0
push 0x5659da
lea ecx, [ebp - 0x30]
call fcn.00416130
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x34]
jb 0x493196
push edi
call fcn.00433932
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 0x4937ec
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 0x493840
cmp al, 0x7f
jae 0x49383a
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 0x493820
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x60]
cmp esi, eax
je 0x493860
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 0x493891
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x493887
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4938c3
push ecx
push edx
call fcn.004338f3
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 0x4937b0
call fcn.00402c60
call fcn.00438c70
int3