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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
mov dword [ebp - 0x98], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x438e90
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x68], eax
call fcn.004b2a8f
push dword [ebp - 0x68]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x6c], edi
call fcn.004cacb0
add esp, 0x10
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push 0
push eax
push dword [ebp - 0x68]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x438a41
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b2ac0
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], 0xd0
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
setne al
mov byte [edx], al
xor al, al
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0xe], al
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], al
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x68], esi
jbe 0x438e77
mov dl, byte [esi + edi]
mov byte [ebp - 0xd], dl
cmp dl, 0x20
jbe 0x438e5b
cmp dl, 0x7f
jae 0x438e5b
cmp dl, 0x3d
je 0x438e5b
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], edi
cmp ecx, edi
jae 0x438ae0
lea eax, [ecx + 1]
cmp edi, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x438bf2
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x438f86
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x438b18
mov eax, connect
mov esi, closesocket
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x438b79
mov edx, edi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x438b41
mov eax, connect
mov esi, closesocket
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x438b79
lea eax, [edx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x438b63
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x438b79
test eax, eax
je 0x438b77
push eax
call fcn.004b2800
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x438b79
xor edi, edi
cmp dword [ebp - 0x78], 0x10
lea eax, [ecx + 1]
mov dword [ebp - 0x20], esi
lea esi, [ecx + edi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x70], esi
push ecx
jb 0x438bd6
mov esi, dword [ebp - 0x34]
push esi
push edi
call fcn.004ca570
mov ecx, dword [ebp - 0x70]
add esp, 0xc
mov al, byte [ebp - 0xd]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [ebp - 0x78]
inc ecx
cmp ecx, 0x1000
jb 0x438bca
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x438f8b
mov esi, edx
push ecx
push esi
call fcn.004b2a81
add esp, 8
jmp 0x438bec
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004ca570
mov al, byte [ebp - 0xd]
add esp, 0xc
mov byte [esi], al
mov byte [esi + 1], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
mov edi, 0xf
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x1c], 0xf0fcfcde
mov dword [ebp - 0x18], 0xebf1ea
movzx eax, byte [ebp + ecx - 0x1c]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 7
jb 0x438c34
lea edx, [ebp - 0x1c]
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x438c50
sub edx, ecx
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.0045db60
add esp, 0xc
test eax, eax
je 0x438dc3
mov dword [ebp - 0x64], 0xaccfd0cf
xor ecx, ecx
mov dword [ebp - 0x60], 0xf0fcfcde
mov dword [ebp - 0x5c], 0xebf1ea
movzx eax, byte [ebp + ecx - 0x64]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, 0xb
jb 0x438c95
lea edx, [ebp - 0x64]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x438cb0
sub edx, ecx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.0045db60
add esp, 0xc
test eax, eax
je 0x438dc3
cmp byte [ebp - 0xe], 0
je 0x438e07
mov dword [ebp - 0x3d], 0xececfecf
xor ecx, ecx
mov dword [ebp - 0x39], 0xfbedf0e8
mov byte [ebp - 0x35], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x3d]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x3d], al
inc ecx
cmp ecx, 8
jb 0x438d00
lea edx, [ebp - 0x3d]
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x438d20
sub edx, ecx
lea eax, [ebp - 0x3d]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.0045db60
add esp, 0xc
test eax, eax
je 0x438e9f
mov dword [ebp - 0x4d], 0xaccfd0cf
xor ecx, ecx
mov dword [ebp - 0x49], 0xececfecf
mov dword [ebp - 0x45], 0xfbedf0e8
mov byte [ebp - 0x41], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x4d]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x4d], al
inc ecx
cmp ecx, 0xc
jb 0x438d70
lea esi, [ebp - 0x4d]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x438d90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4d]
sub esi, ecx
cmp dword [ebp - 0x20], 0x10
push esi
push eax
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push 0
call fcn.0045db60
add esp, 0xc
test eax, eax
je 0x438e9f
mov esi, dword [ebp - 0x14]
jmp 0x438e07
mov eax, dword [ebp + 8]
add esi, 9
cmp byte [eax], 0
jne 0x438dd4
mov esi, dword [ebp - 0x14]
add esi, 2
mov eax, dword [ebp - 0x6c]
mov al, byte [esi + eax]
cmp al, 0x20
jbe 0x438e03
nop
cmp al, 0x7f
jae 0x438e00
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x90]
push dword [ebp - 0x74]
call fcn.00402910
mov eax, dword [ebp - 0x6c]
inc esi
mov al, byte [esi + eax]
cmp al, 0x20
ja 0x438de0
mov edi, dword [ebp - 0x7c]
mov byte [ebp - 0xe], 1
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x438e41
mov edx, dword [ebp - 0x90]
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x438e37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438f8b
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
jmp 0x438e6a
push 0
push 0x51155c
lea ecx, [ebp - 0x34]
call fcn.00457ee0
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x68]
jb 0x438a92
push edi
call fcn.004b2ac0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402890
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp byte [edx], 0
lea eax, [ecx + 9]
jne 0x438eb0
lea eax, [ecx + 2]
xor edx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], edx
mov ecx, 0xf
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x58], dl
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x6c]
lea esi, [eax + edi]
mov al, byte [esi]
cmp al, 0x20
jbe 0x438f05
cmp al, 0x7f
jae 0x438eff
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x58]
push dword [ebp - 0x74]
call fcn.00402910
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x438ee5
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x98]
lea eax, [ebp - 0x58]
cmp esi, eax
je 0x438f25
cmp ecx, 0x10
mov ecx, esi
push edx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00457ee0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x438f56
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x438f4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438f8b
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
jmp 0x438e77
call fcn.00402210
call fcn.004cdf70
int3