Function at 0x401750
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x436020]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x14]
push edi
lea edi, [esi + 0x70]
push edi
push str.LOADER:_archivename_is__s_n
call fcn.00401bc0
mov edx, dword [esi]
add esp, 8
test edx, edx
jne 0x4017b3
push 0x427350
push edi
call fcn.00402d70
mov edx, eax
add esp, 8
mov dword [esi], edx
test edx, edx
jne 0x4017b3
push edi
push str.LOADER:_Cannot_open_archive:__s_n
call fcn.00401bc0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
mov ecx, dword [0x429f9c]
mov eax, dword [0x429fa0]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
push ebx
shrd ecx, eax, 0x18
push 8
lea eax, [esp + 0x10]
add cl, 0xc
push eax
push edx
mov byte [esp + 0x1b], cl
call fcn.004063b0
mov edi, eax
mov ebx, edx
mov ecx, edi
add esp, 0xc
or ecx, ebx
jne 0x40180e
push str.LOADER:_Cannot_find_cookie__n
call fcn.00401bc0
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
push ebx
push edi
push str.LOADER:_Cookie_found_at_offset_0x_llX_n
call fcn.00401bc0
push 0
push ebx
push edi
push dword [esi]
call fcn.0040d7b6
add esp, 0x1c
test eax, eax
jns 0x401853
push str.Failed_to_seek_to_cookie_position__n
push str.fseek
call fcn.00401ba0
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
push dword [esi]
lea eax, [esi + 0x18]
push 1
push 0x58
push eax
call fcn.0040d392
add esp, 0x10
cmp eax, 1
jae 0x401874
push str.Failed_to_read_cookie__n
jmp 0x40191d
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
bswap eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
bswap ecx
sub edi, ecx
mov dword [esi + 0x20], ecx
bswap eax
sbb ebx, 0
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
add edi, 0x58
bswap eax
adc ebx, 0
mov dword [esi + 0x2c], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x5074], 0
mov dword [0x436adc], eax
xor eax, eax
mov ecx, dword [esi + 0x24]
add ecx, dword [esi + 8]
push 0
adc eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call fcn.0040d7b6
push dword [esi + 0x28]
call fcn.00411f43
add esp, 0x14
mov dword [esi + 0x10], eax
test eax, eax
jne 0x401903
push str.Could_not_allocate_buffer_for_TOC__n
push str.malloc
call fcn.00401ba0
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
push dword [esi]
push 1
push dword [esi + 0x28]
push eax
call fcn.0040d392
add esp, 0x10
cmp eax, 1
jae 0x40193f
push str.Could_not_read_full_TOC__n
push str.fread
call fcn.00401ba0
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x28]
push dword [esi]
mov dword [esi + 0x14], eax
call fcn.0040d18d
add esp, 4
test eax, eax
je 0x401978
push str.Error_on_file._n
call fcn.00401bc0
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jae 0x4019b9
mov ecx, dword [eax + 4]
mov edx, dword [eax]
bswap ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
bswap ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
bswap edx
bswap ecx
mov dword [eax], edx
mov dword [eax + 0xc], ecx
add eax, edx
cmp eax, dword [esi + 0x10]
jb 0x4019ac
cmp eax, dword [esi + 0x14]
jb 0x401980
jmp 0x4019b9
push str.Cannot_read_Table_of_Contents._n
call fcn.00401bc0
add esp, 4
push esi
call fcn.00401280
mov ecx, dword [esp + 0x18]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00409bfe
add esp, 0xc
ret