Function at 0x401800
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xb0
mov edi, ecx
mov dword [esp + 0x24], ebp
call fcn.0040f6b5
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x40188d
push 0x40
push str.malloc
push 0x4352f0
mov dword [0x4352e8], 0xc9
call fcn.0040ead2
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435370], bp
mov dword [0x4352ec], 0xb0
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0x18
mov word [0x43577e], bp
mov dword [0x435780], 0x61
jmp 0x401d4e
push 0x429c2c
push edi
call fcn.0040f83e
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [ebx], esi
jne 0x401919
push 0x40
push str.fopen
push 0x4352f0
mov dword [0x4352e8], 0xd3
call fcn.0040ead2
add esp, 0xc
cmp edi, ebp
mov word [0x435370], bp
mov dword [0x4352ec], ebp
je 0x4018e5
push 0x104
push edi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x66
jmp 0x401d4e
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff9
push esi
call fcn.0040eba8
push esi
push 2
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0040efca
add esp, 0x20
cmp eax, 2
jne 0x401af5
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0040efca
add esp, 0x10
cmp eax, 1
jne 0x401af5
push esi
push 4
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040efca
add esp, 0x10
cmp eax, 4
jne 0x401af5
cmp word [esp + 0x18], 0xfffe
jne 0x401a50
mov eax, dword [esp + 0x1c]
push ebp
add eax, 0xfffffff9
push ebp
push eax
push esi
call fcn.0040eba8
push esi
push 2
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.0040efca
add esp, 0x20
cmp eax, 2
jne 0x4019d6
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0040efca
add esp, 0x10
cmp eax, 1
jne 0x4019d6
push esi
push 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040efca
add esp, 0x10
cmp eax, 4
je 0x401a50
push 0x40
push str.fread
push 0x4352f0
mov dword [0x4352e8], 0xd5
call fcn.0040ead2
add esp, 0xc
cmp edi, ebp
mov word [0x435370], bp
mov dword [0x4352ec], 4
je 0x401a1c
push 0x104
push edi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x81
jmp 0x401d4e
mov ecx, dword [esp + 0x1c]
push ebp
push ebp
push ecx
push esi
call fcn.0040eba8
add esp, 0x10
push esi
push 1
lea edx, [esp + 0x2c]
push 0x20
push edx
call fcn.0040efca
add esp, 0x10
cmp eax, 1
je 0x401b6f
push 0x40
push str.fread
push 0x4352f0
mov dword [0x4352e8], 0xd5
call fcn.0040ead2
add esp, 0xc
cmp edi, ebp
mov word [0x435370], bp
mov dword [0x4352ec], 0x20
je 0x401ac1
push 0x104
push edi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x8a
jmp 0x401d4e
push 0x40
push str.fread
push 0x4352f0
mov dword [0x4352e8], 0xd5
call fcn.0040ead2
add esp, 0xc
cmp edi, ebp
mov word [0x435370], bp
mov dword [0x4352ec], 4
je 0x401b3b
push 0x104
push edi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x75
jmp 0x401d4e
mov edi, 0x429c40
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c44
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c48
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c4c
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c50
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c54
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
mov edi, 0x429c58
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401cab
push 0x3a4
lea esi, [esp + 0x24]
lea eax, [esp + 0x28]
call fcn.004016d0
mov edx, dword [esp + 0x24]
mov esi, eax
push 0x3a4
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.0040e2b0
add esp, 8
cmp esi, ebp
mov dword [0x4352e8], 8
mov word [0x435370], bp
mov dword [0x4352ec], ebp
je 0x401c70
push 0x104
push esi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov eax, esi
mov word [0x43577e], bp
mov dword [0x435780], 0xa7
call fcn.00401710
jmp 0x401d4e
movsx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
mov word [ebx + 0x10], bp
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x24], ebp
mov dword [ebx + 0x28], ebp
mov cl, byte [esp + 0x2a]
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x5c], ebp
mov dword [ebx + 0x64], ebp
mov byte [ebx + 0x68], cl
mov dword [ebx + 0x69], eax
mov dword [ebx + 0x6d], eax
mov dword [ebx + 0x71], eax
mov dword [ebx + 0x75], eax
mov dword [ebx + 0x79], eax
mov dword [ebx + 0x7d], eax
mov dword [ebx + 0x81], eax
mov dword [ebx + 0x85], eax
mov dword [ebx + 0x89], eax
mov dword [ebx + 0x8d], eax
mov dword [ebx + 0x91], eax
mov dword [ebx + 0x95], eax
mov dword [ebx + 0x99], eax
mov dword [ebx + 0x9d], eax
mov dword [ebx + 0xa1], eax
mov dword [ebx + 0xa5], eax
cmp dword [0x4352e8], ebp
je 0x401d87
cmp ebx, ebp
je 0x401d72
mov eax, dword [ebx]
cmp eax, ebp
je 0x401d69
push eax
call fcn.0040f238
add esp, 4
push ebx
call fcn.0040f5d8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040eac3
add esp, 0x3c
ret
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x3c
ret