Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x438040]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x6c]
push esi
push edi
push ebx
push str.LOADER:_attempting_to_open_archive__s_n
xor esi, esi
call fcn.004024c0
push 0x4285a0
push ebx
call fcn.00404460
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x401978
push ebx
push str.LOADER:_cannot_open_archive:__s_n
call fcn.004024c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040ba43
add esp, 0x64
ret
mov ecx, dword [0x42b2c0]
mov eax, dword [0x42b2c4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
push ebp
shrd ecx, eax, 0x18
push 8
lea eax, [esp + 0x6c]
add cl, 0xc
push eax
push edi
mov byte [esp + 0x77], cl
call fcn.004079a0
mov ecx, edx
add esp, 0xc
mov ebp, eax
mov dword [esp + 0x68], ecx
or eax, ecx
jne 0x4019c5
push str.LOADER:_cannot_find_cookie__n
call fcn.004024c0
add esp, 4
jmp 0x401c01
push ecx
push ebp
push str.LOADER:_cookie_found_at_offset_0x_llX_n
call fcn.004024c0
push 0
push dword [esp + 0x78]
push ebp
push edi
call fcn.0040f696
add esp, 0x1c
test eax, eax
jns 0x401a03
call fcn.004133f0
push str.Failed_to_seek_to_cookie_position__n
push dword [eax]
push str.fseek
call fcn.004027c0
add esp, 0xc
jmp 0x401c01
push edi
push 1
lea eax, [esp + 0x18]
push 0x58
push eax
call fcn.0040f272
add esp, 0x10
cmp eax, 1
jae 0x401a38
call fcn.004133f0
push str.Failed_to_read_cookie__n
push dword [eax]
push str.fread
call fcn.004027c0
add esp, 0xc
jmp 0x401c01
push 0x1058
push 1
call fcn.00413403
mov esi, eax
add esp, 8
test esi, esi
jne 0x401a6b
call fcn.004133f0
push str.Could_not_allocate_memory_for_archive_structure__n
push dword [eax]
push str.calloc
call fcn.004027c0
add esp, 0xc
jmp 0x401c01
push ebx
push 0x4287d4
push 0x1000
push esi
call fcn.00401c50
mov eax, dword [esp + 0x28]
bswap eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
bswap eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
bswap eax
mov dword [esp + 0x34], eax
mov dword [esi + 0x1014], eax
lea eax, [esp + 0x38]
push eax
push 0x4287d4
lea eax, [esi + 0x1018]
push 0x40
push eax
call fcn.00401c50
sub ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x88]
sbb edx, 0
add ebp, 0x58
mov dword [esi + 0x1000], ebp
adc edx, 0
xor eax, eax
mov dword [esi + 0x1004], edx
mov ecx, dword [esp + 0x3c]
add ecx, ebp
push 0
adc eax, edx
push eax
push ecx
push edi
call fcn.0040f696
push dword [esp + 0x50]
call fcn.00413429
add esp, 0x34
mov dword [esi + 0x1008], eax
test eax, eax
jne 0x401b2a
call fcn.004133f0
push str.Could_not_allocate_buffer_for_TOC__n
push dword [eax]
push str.malloc
call fcn.004027c0
add esp, 0xc
jmp 0x401c01
push edi
push 1
push dword [esp + 0x28]
push eax
call fcn.0040f272
add esp, 0x10
cmp eax, 1
jae 0x401b5d
call fcn.004133f0
push str.Could_not_read_full_TOC__n
push dword [eax]
push str.fread
call fcn.004027c0
add esp, 0xc
jmp 0x401c01
mov eax, dword [esi + 0x1008]
add eax, dword [esp + 0x20]
push edi
mov dword [esi + 0x100c], eax
call fcn.0040f06d
add esp, 4
test eax, eax
je 0x401b89
push str.Error_on_file._n
call fcn.00402640
add esp, 4
jmp 0x401c01
mov edx, dword [esi + 0x1008]
cmp edx, dword [esi + 0x100c]
jae 0x401c01
mov ebx, dword [0x43bca4]
movups xmm1, xmmword [0x428830]
xor eax, eax
cmp ebx, 2
jl 0x401bb8
movups xmm0, xmmword [edx]
pshufb xmm0, xmm1
movups xmmword [edx], xmm0
jmp 0x401bc6
mov ecx, dword [edx + eax*4]
bswap ecx
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 4
jl 0x401bb8
movsx eax, byte [edx + 0x11]
add eax, 0xffffffa6
cmp eax, 0x1e
ja case.0x401bd9.91
movzx eax, byte [eax + 0x401c28]
jmp dword [eax*4 + 0x401c20]
mov cl, 1
jmp 0x401be6
xor cl, cl
mov al, byte [esi + 0x1010]
or al, cl
setne al
mov byte [esi + 0x1010], al
add edx, dword [edx]
cmp edx, dword [esi + 0x100c]
jb 0x401ba4
push edi
call fcn.0040f011
mov ecx, dword [esp + 0x74]
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ba43
add esp, 0x64
ret