Function at 0x441070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473f65
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x50]
call fcn.00419130
mov dword [ebp - 4], 0
test edi, edi
jne 0x4410be
cmp dword [ebp - 0x3c], 8
lea edi, [ebp - 0x50]
cmovae edi, dword [ebp - 0x50]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x441174
push dword [ebp + 0x10]
xor edx, edx
mov ecx, eax
push dword [ebp + 0xc]
call fcn.00419270
and eax, edx
add esp, 8
cmp eax, 0xffffffff
je 0x441174
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], 0
push eax
push dword [esi + 0x24]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
call ebx
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
je 0x441174
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0x24]
call ebx
push dword [ebp - 0x54]
push 1
call fcn.00454560
mov edi, eax
add esp, 8
test edi, edi
je 0x441174
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x54]
push edi
push dword [esi + 0x24]
call ebx
mov eax, dword [ebp - 0x54]
cmp byte [edi + eax - 1], 0
je 0x4411bf
push edi
call fcn.004605b8
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x441352
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441348
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441374
jmp 0x441348
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00417b40
push eax
lea ecx, [esi + 8]
call fcn.004116a0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x44120c
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441202
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441379
push edx
push ecx
call fcn.00451449
add esp, 8
push edi
call fcn.004605b8
add esp, 4
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [esi + 0x24]
call ebx
cmp dword [ebp - 0x14], 4
jne 0x441174
push dword [ebp - 0x58]
push 1
call fcn.00454560
mov edi, eax
add esp, 8
mov dword [ebp - 0x64], edi
test edi, edi
je 0x441174
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x5c], 0
push eax
push 1
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x24]
call ebx
cmp dword [ebp - 0x14], 1
jne 0x441174
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x58]
push edi
push dword [esi + 0x24]
call ebx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x14], eax
jne 0x441174
push dword [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push ecx
push eax
mov edx, edi
movq qword [ebp - 0x2c], xmm0
lea ecx, [ebp - 0x2c]
call fcn.00449190
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x20]
push eax
mov dword [ebp - 0x6c], edi
call fcn.00444730
push dword [ebp - 0x64]
call fcn.004605b8
add esp, 4
cmp byte [ebp + 0x14], 0
je 0x441308
mov ecx, dword [esi + 0x24]
mov edx, 1
push 0
push 0
call fcn.00419270
mov ecx, eax
add esp, 8
and ecx, edx
cmp ecx, 0xffffffff
je 0x441308
push edx
push eax
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00441380
mov ebx, dword [ebp - 0x1c]
mov byte [esi + 4], 1
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x441182
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x441339
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441374
push ecx
push edi
call fcn.00451449
add esp, 8
jmp 0x441182
push edx
push ecx
call fcn.00451449
add esp, 8
mov eax, esi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret 0x10
call fcn.00460976
call fcn.00460976
int3