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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], edx
mov eax, ecx
movlpd qword [esp + 0x28], xmm0
xor edi, edi
mov dword [esp + 0xc], eax
xor esi, esi
movaps xmmword [esp + 0x30], xmm0
test edx, edx
je 0x401b0c
lea edx, [esp + 0x30]
call fcn.00401090
mov edi, eax
test edi, edi
je 0x401b0c
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, eax
test edi, edi
je 0x401b0c
mov ecx, dword [esp + 0x3c]
xor edi, edi
lea eax, [ecx + 0x214]
cmp dword [esp + 0x2c], esi
jl 0x401b0c
mov edx, dword [esp + 0x28]
jg 0x401a6f
cmp edx, eax
jbe 0x401b0c
mov eax, 0xfffffdec
sub eax, ecx
mov ecx, 0xffffffff
push 0x434
sbb ecx, esi
add edx, eax
mov dword [esp + 0x2c], edx
adc dword [esp + 0x30], ecx
call fcn.0047657a
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
test esi, esi
je 0x401b0c
push 0
push 0
push dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x24], 0
push dword [esp + 0x34]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push dword [esp + 0x1c]
lea edx, [edi + 0x20]
mov dword [esp + 0x34], eax
lea esi, [edi + 0x220]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], esi
call eax
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x24], eax
test edi, edi
je 0x401b08
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x214
push esi
push dword [esp + 0x1c]
call eax
mov edi, eax
test edi, edi
je 0x401b08
cmp dword [esp + 0x18], 0x214
je 0x401b2f
xor edi, edi
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov dword [eax], 0
test esi, esi
je 0x401d5b
push esi
call fcn.0047367f
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x401b08
xor edi, edi
cmp dword [esi], 0x33333333
jne 0x401b08
cmp dword [esi + 0x210], 0x44444444
jne 0x401b08
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
ja 0x401b08
mov eax, dword [esi + 4]
test eax, eax
jne 0x401b62
mov ecx, 0x4d9f00
lea edx, [edi + 2]
jmp 0x401b71
cmp eax, 1
jne 0x401b08
mov ecx, 0x4da310
mov edx, 3
mov eax, dword [esp + 0x10]
push ecx
push ecx
mov dword [eax], edx
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0x200
call fcn.004023c0
add esp, 0xc
test eax, eax
jne 0x401b08
cmp dword [esp + 0x18], 0x30
jne 0x401d63
mov eax, dword [esi]
cmp eax, dword [str.88888888]
jne 0x401d63
mov eax, dword [esi + 4]
cmp eax, dword [0x4da734]
jne 0x401d63
mov eax, dword [esi + 0x28]
cmp eax, dword [str.66666666]
jne 0x401d63
mov eax, dword [esi + 0x2c]
cmp eax, dword [0x4da728]
jne 0x401d63
mov esi, dword [esp + 8]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x10]
push esi
call fcn.00401280
mov edi, eax
add esp, 8
test edi, edi
je 0x401b0c
mov edx, dword [esp + 0x1c]
mov ecx, esi
add edx, 8
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401d3f
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401c13
cmp dword [ebp + 8], 0
mov edi, 1
je 0x401d4e
cmp dword [ebp + 0xc], 0
je 0x401d4e
mov eax, dword [esp + 0x14]
push dword [eax + 0xc]
call fcn.0047657a
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x401d4e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
sub edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 0
sbb ecx, 0
mov dword [esp + 0x30], edx
push ecx
push edx
push dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
call dword [esp + 0x34]
mov edi, eax
test edi, edi
je 0x401cc3
push 0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
push esi
push dword [esp + 0x1c]
call dword [esp + 0x38]
mov edi, eax
test edi, edi
je 0x401cc3
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
jne 0x401cc3
test edi, edi
jne 0x401ce6
mov edi, 1
push esi
call fcn.0047367f
mov esi, dword [esp + 0xc]
add esp, 4
push esi
call fcn.0047367f
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0x11111111
jne 0x401cc8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cmp dword [eax + esi - 4], 0x22222222
jne 0x401cc8
mov ecx, dword [esp + 0x10]
lea esi, [eax - 8]
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], esi
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004676f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [esi + eax], xmm0
mov esi, dword [esp + 8]
push esi
mov dword [ecx], eax
call fcn.0047367f
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 1
mov edi, 1
mov esi, dword [esp + 8]
push esi
call fcn.0047367f
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [eax], edi
jmp 0x401d49