Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push esi
push edi
push 0x4275c0
push eax
mov dword [esp + 0x10], eax
xor esi, esi
call fcn.00404070
mov edi, eax
add esp, 8
test edi, edi
jne 0x40195f
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0040b4c3
add esp, 0x68
ret
mov ecx, dword [0x429090]
mov eax, dword [0x429094]
push ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
push ebp
shrd ecx, eax, 0x18
push 8
lea eax, [esp + 0x70]
add cl, 0xc
push eax
push edi
mov byte [esp + 0x7b], cl
call fcn.00407290
mov ebp, edx
add esp, 0xc
mov ebx, eax
or eax, ebp
je 0x401bd9
push 0
push ebp
push ebx
push edi
call fcn.0040f206
add esp, 0x10
test eax, eax
jns 0x4019ca
call fcn.00412f60
push str.Failed_to_seek_to_cookie_position__n
push dword [eax]
push str.fseek
call fcn.004025f0
add esp, 0xc
jmp 0x401bd9
push edi
push 1
lea eax, [esp + 0x1c]
push 0x58
push eax
call fcn.0040ede2
add esp, 0x10
cmp eax, 1
jae 0x4019ff
call fcn.00412f60
push str.Failed_to_read_cookie__n
push dword [eax]
push str.fread
call fcn.004025f0
add esp, 0xc
jmp 0x401bd9
push 0x1060
push 1
call fcn.00412f73
mov esi, eax
add esp, 8
test esi, esi
jne 0x401a32
call fcn.00412f60
push str.Could_not_allocate_memory_for_archive_structure__n
push dword [eax]
push str.calloc
call fcn.004025f0
add esp, 0xc
jmp 0x401bd9
push dword [esp + 0x10]
push 0x427760
push 0x1000
push esi
call fcn.00401c20
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 eax, dword [esp + 0x38]
bswap eax
mov dword [esp + 0x38], eax
mov dword [esi + 0x1018], eax
lea eax, [esp + 0x3c]
push eax
push 0x427760
lea eax, [esi + 0x101c]
push 0x40
push eax
call fcn.00401c20
sub ebx, dword [esp + 0x3c]
push 0
sbb ebp, 0
add ebx, 0x58
mov dword [esi + 0x1000], ebx
adc ebp, 0
xor eax, eax
mov dword [esi + 0x1004], ebp
mov ecx, dword [esp + 0x44]
add ecx, ebx
adc eax, ebp
push eax
push ecx
push edi
call fcn.0040f206
push dword [esp + 0x54]
call fcn.00412f99
add esp, 0x34
mov dword [esi + 0x1008], eax
test eax, eax
jne 0x401aed
call fcn.00412f60
push str.Could_not_allocate_buffer_for_TOC__n
push dword [eax]
push str.malloc
call fcn.004025f0
add esp, 0xc
jmp 0x401bd9
push edi
push 1
push dword [esp + 0x2c]
push eax
call fcn.0040ede2
add esp, 0x10
cmp eax, 1
jae 0x401b20
call fcn.00412f60
push str.Could_not_read_full_TOC__n
push dword [eax]
push str.fread
call fcn.004025f0
add esp, 0xc
jmp 0x401bd9
mov eax, dword [esi + 0x1008]
add eax, dword [esp + 0x24]
push edi
mov dword [esi + 0x100c], eax
call fcn.0040ebdd
add esp, 4
test eax, eax
je 0x401b4f
push str.Error_on_file._n
call fcn.00402470
add esp, 4
jmp 0x401bd9
mov edx, dword [esi + 0x1008]
cmp edx, dword [esi + 0x100c]
jae 0x401bd9
mov ebx, dword [0x438cb8]
movups xmm1, xmmword [0x4277c0]
nop word [eax + eax]
xor eax, eax
cmp ebx, 2
jl 0x401b84
movups xmm0, xmmword [edx]
pshufb xmm0, xmm1
movups xmmword [edx], xmm0
jmp 0x401b92
mov ecx, dword [edx + eax*4]
bswap ecx
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 4
jl 0x401b84
movsx eax, byte [edx + 0x11]
add eax, 0xffffffa6
cmp eax, 0x1e
ja case.0x401ba5.91
movzx eax, byte [eax + 0x401c00]
jmp dword [eax*4 + 0x401bf8]
mov cl, 1
jmp 0x401bb2
xor cl, cl
mov al, byte [esi + 0x1010]
or al, cl
setne al
mov byte [esi + 0x1010], al
cmp byte [edx + 0x11], 0x6c
jne 0x401bcf
mov dword [esi + 0x1014], edx
add edx, dword [edx]
cmp edx, dword [esi + 0x100c]
jb 0x401b70
push edi
call fcn.0040eb81
mov ecx, dword [esp + 0x78]
add esp, 4
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0040b4c3
add esp, 0x68
ret