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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
xor ebx, ebx
lea edx, [eax + 0x10]
push edi
mov dword [esp + 0x18], ebx
cmp edx, ecx
jae 0x44197a
cmp edx, 0x4980c8
jne 0x441984
mov dword [esp + 0x1c], 0xffffffff
jmp 0x44198b
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], edx
add eax, 0x20
cmp eax, ecx
jae 0x441a35
cmp eax, 0x4980c8
je 0x441a25
mov edx, dword [eax + 8]
cmp edx, 3
jne 0x441a09
cmp eax, ecx
jb 0x4419b2
mov eax, 0x4980c8
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x4419e5
cmp ecx, 4
jne 0x4419fe
mov eax, dword [eax]
add eax, 0x10
lea edi, [esp + 0x10]
call fcn.00446980
test eax, eax
je 0x4419fe
fld qword [esp + 0x10]
mov dword [esp + 0x30], 3
fstp qword [esp + 0x28]
lea eax, [esp + 0x28]
fld qword [eax]
fadd qword [0x49ce40]
fstp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x10], eax
jmp 0x441a67
xor eax, eax
movzx eax, ax
mov dword [esp + 0x10], eax
jmp 0x441a67
cmp edx, 2
jne 0x441a25
cmp eax, ecx
jb 0x441a17
mov eax, 0x4980c8
cmp dword [eax + 8], 2
jne 0x441a63
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x441a67
cmp eax, ecx
jae 0x441a35
cmp eax, 0x4980c8
je 0x441a35
cmp dword [eax + 8], ebx
jg 0x441a3f
mov dword [esp + 0x10], 0x49b110
jmp 0x441a67
push 3
xor ebx, ebx
mov eax, esi
call fcn.0041fbc0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x441a63
push str.string
lea edi, [eax + 3]
call fcn.004227a0
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
cmp eax, 4
jne 0x441c4e
mov eax, dword [esi + 0xc]
add eax, 0x10
cmp eax, dword [esi + 8]
jb 0x441a84
mov eax, 0x4980c8
mov ecx, dword [eax + 8]
cmp ecx, 4
je 0x441ad7
cmp ecx, 7
jne 0x441a9e
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
jne 0x441a9e
lea edi, [ecx + 0x18]
jmp 0x441adc
mov edi, dword [ebp + 8]
mov esi, eax
call fcn.00436d90
test eax, eax
jne 0x441ab3
mov esi, dword [ebp + 8]
xor edi, edi
jmp 0x441adc
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x48]
cmp edx, dword [eax + 0x44]
jb 0x441ac5
mov eax, edi
call fcn.00436b60
mov eax, dword [edi + 0xc]
add eax, 0x10
mov esi, edi
cmp eax, dword [edi + 8]
jb 0x441ad7
mov eax, 0x4980c8
mov edi, dword [eax]
add edi, 0x10
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
and edx, 0xfffffff0
cmp edx, 0x20
jne 0x441c3f
add ecx, 0x10
cmp ecx, eax
jb 0x441afe
mov ecx, 0x4980c8
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
add dword [esi + 8], 0x10
or ebx, 0xffffffff
mov eax, esi
call fcn.00421d90
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
add dword [esi + 8], 0xfffffff0
mov ebx, eax
test ebx, ebx
je 0x441b44
cmp ebx, 0xffffffff
jne 0x441b64
cmp byte [edi], 0x7e
jne 0x441c3f
cmp byte [edi + 1], 0
je 0x441c3f
inc edi
mov ebx, edi
call fcn.0041fdf0
mov esi, dword [ebp + 8]
jmp 0x441b12
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
jne 0x441b8c
push eax
call fcn.0046f41d
add esp, 4
mov edi, eax
jmp 0x441bb6
mov edi, eax
call fcn.00420a30
test eax, eax
jne 0x441b9e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
cmp dword [eax - 8], 7
mov esi, edx
jne 0x441bb4
mov edi, dword [eax - 0x10]
add edi, 0x18
jmp 0x441bb6
xor edi, edi
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441c16
cmp dword [ebp + 0xc], 0
jne 0x441c0c
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x441c02
test al, 1
jne 0x441c02
cmp byte [edi], 0xff
jne 0x441c02
cmp byte [edi + 1], 0xfe
jne 0x441c02
shr eax, 1
push eax
push edi
call fcn.0041fd40
add esp, 8
mov dword [esp + 0xc], 1
jmp 0x441c1e
push eax
push edi
call fcn.0041fd00
add esp, 8
mov dword [esp + 0xc], 1
jmp 0x441c1e
mov dword [esp + 0xc], 0
cmp dword [ebp + 0xc], 0
jne 0x441c2d
push edi
call fcn.0046f3e3
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.004238e0
mov dword [esp + 0x18], eax
jmp 0x441ca7
cmp eax, 3
jne 0x441c67
push 2
push esi
call fcn.0041f850
movzx edx, ax
add esp, 8
mov dword [esp + 0x18], edx
jmp 0x441ca7
mov edi, 2
cmp eax, edi
jne 0x441c97
mov eax, dword [esi + 0xc]
add eax, 0x10
cmp eax, dword [esi + 8]
jb 0x441c80
mov eax, 0x4980c8
cmp dword [eax + 8], edi
jne 0x441c8d
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x441ca7
mov dword [esp + 0x18], 0
jmp 0x441ca7
push str.string
call fcn.004227a0
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, dword [esi + 0xc]
add ecx, 0x30
xor eax, eax
cmp ecx, dword [esi + 8]
jae 0x441cce
cmp ecx, 0x4980c8
je 0x441cce
cmp dword [ecx + 8], eax
jle 0x441cce
push eax
push eax
push 4
push esi
call fcn.004249d0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push esi
call fcn.004219e0
add esp, 0x10
xor edx, edx
cmp edx, eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret