Function at 0x4375d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x437601
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
push 0x438
call fcn.00445884
add esp, 4
mov esi, eax
test esi, esi
push ebp
jne 0x437625
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call fcn.00436cd0
add esp, 4
cmp eax, 0xffffffff
mov dword [esi + 0x414], eax
jne 0x437651
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00445979
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
dec eax
shl eax, 5
push edi
add eax, 0x438
push eax
push esi
call fcn.00445106
mov edi, eax
add esp, 8
test edi, edi
jne 0x437685
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00445979
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [edi + 4]
push eax
call esi
push 0x466680
lea ecx, [edi + 0x20c]
push ecx
call esi
mov edx, dword [edi + 0x414]
shl edx, 4
push edx
call fcn.00445884
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4376d6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00445979
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 0x414]
push 0
lea eax, [esp + 0x18]
push eax
shl ecx, 4
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437713
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00445979
push edi
call fcn.00445979
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x414]
mov ecx, dword [esp + 0x14]
mov edx, eax
shl edx, 4
cmp ecx, edx
jne 0x4376f3
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x4377cf
add esi, 8
lea ebx, [edi + 0x424]
nop
mov eax, dword [esi]
push eax
call fcn.00445884
add esp, 4
test eax, eax
mov dword [ebx], eax
je 0x4377e9
mov ecx, dword [esi]
push 0
mov dword [ebx + 4], ecx
mov edx, dword [esi + 4]
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43780d
mov ecx, dword [esi]
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437831
mov eax, dword [esp + 0x14]
cmp eax, dword [esi]
jne 0x437855
lea ecx, [ebx - 0xc]
push ecx
call fcn.00436e10
add esp, 4
test eax, eax
je 0x437866
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x414]
inc eax
add esi, 0x10
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x437740
mov esi, dword [esp + 0x10]
push esi
call fcn.00445979
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00445979
mov edx, dword [esp + 0x14]
push edx
call fcn.00445979
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00445979
mov eax, dword [esp + 0x14]
push eax
call fcn.00445979
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00445979
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00445979
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
jmp 0x4376fb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
jmp 0x4376fb