Function at 0x401a00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xb0
mov edi, ecx
mov dword [esp + 0x24], ebx
call fcn.00410ff7
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x401a8d
push 0x40
push str.malloc
push 0x437270
mov dword [0x43726c], 0xc9
call fcn.00410502
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4372f0], bx
mov dword [0x4372f0], 0xb0
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0x18
mov word [0x437706], bx
mov dword [0x4372f4], 0x67
jmp 0x401f85
push 0x42bc2c
push edi
call fcn.00411180
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp], esi
jne 0x401b1a
push 0x40
push str.fopen
push 0x437270
mov dword [0x43726c], 0xd3
call fcn.00410502
add esp, 0xc
cmp edi, ebx
mov word [0x4372f0], bx
mov dword [0x4372f0], ebx
je 0x401ae6
push 0x104
push edi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0xc
mov word [0x437706], bx
mov dword [0x4372f4], 0x6c
jmp 0x401f85
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff9
push esi
call fcn.004105d8
push esi
push 2
lea eax, [esp + 0x30]
push 1
push eax
call fcn.004109fa
add esp, 0x20
cmp eax, 2
jne 0x401cf6
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.004109fa
add esp, 0x10
cmp eax, 1
jne 0x401cf6
push esi
push 4
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004109fa
add esp, 0x10
cmp eax, 4
jne 0x401cf6
cmp word [esp + 0x18], 0xfffe
jne 0x401c51
mov eax, dword [esp + 0x1c]
push ebx
add eax, 0xfffffff9
push ebx
push eax
push esi
call fcn.004105d8
push esi
push 2
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.004109fa
add esp, 0x20
cmp eax, 2
jne 0x401bd7
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.004109fa
add esp, 0x10
cmp eax, 1
jne 0x401bd7
push esi
push 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004109fa
add esp, 0x10
cmp eax, 4
je 0x401c51
push 0x40
push str.fread
push 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
cmp edi, ebx
mov word [0x4372f0], bx
mov dword [0x4372f0], 4
je 0x401c1d
push 0x104
push edi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0xc
mov word [0x437706], bx
mov dword [0x4372f4], 0x87
jmp 0x401f85
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ecx
push esi
call fcn.004105d8
add esp, 0x10
push esi
push 1
lea edx, [esp + 0x2c]
push 0x20
push edx
call fcn.004109fa
add esp, 0x10
cmp eax, 1
je 0x401d70
push 0x40
push str.fread
push 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
cmp edi, ebx
mov word [0x4372f0], bx
mov dword [0x4372f0], 0x20
je 0x401cc2
push 0x104
push edi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0xc
mov word [0x437706], bx
mov dword [0x4372f4], 0x90
jmp 0x401f85
push 0x40
push str.fread
push 0x437270
mov dword [0x43726c], 0xd5
call fcn.00410502
add esp, 0xc
cmp edi, ebx
mov word [0x4372f0], bx
mov dword [0x4372f0], 4
je 0x401d3c
push 0x104
push edi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0xc
mov word [0x437706], bx
mov dword [0x4372f4], 0x7b
jmp 0x401f85
mov edi, 0x42bc40
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc44
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc48
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc4c
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc50
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc54
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc58
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc5c
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
mov edi, 0x42bc60
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401edc
push 0x3a4
lea esi, [esp + 0x24]
lea eax, [esp + 0x28]
call fcn.004018d0
mov edx, dword [esp + 0x24]
mov esi, eax
push 0x3a4
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.0040fce0
add esp, 8
cmp esi, ebx
mov dword [0x43726c], 8
mov word [0x4372f0], bx
mov dword [0x4372f0], ebx
je 0x401ea1
push 0x104
push esi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x437500
mov word [0x4374fe], bx
call fcn.00410502
add esp, 0xc
mov eax, esi
mov word [0x437706], bx
mov dword [0x4372f4], 0xb2
call fcn.00401910
jmp 0x401f85
movsx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov word [ebp + 0x10], bx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov cl, byte [esp + 0x2a]
xor eax, eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x64], eax
xor eax, eax
mov byte [ebp + 0x4c], bl
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x6c], cl
mov dword [ebp + 0x6d], eax
mov dword [ebp + 0x71], eax
mov dword [ebp + 0x75], eax
mov dword [ebp + 0x79], eax
mov dword [ebp + 0x7d], eax
mov dword [ebp + 0x81], eax
mov dword [ebp + 0x85], eax
mov dword [ebp + 0x89], eax
mov dword [ebp + 0x8d], eax
mov dword [ebp + 0x91], eax
mov dword [ebp + 0x95], eax
mov dword [ebp + 0x99], eax
mov dword [ebp + 0x9d], eax
mov dword [ebp + 0xa1], eax
mov dword [ebp + 0xa5], eax
mov dword [ebp + 0xa9], eax
cmp dword [0x43726c], ebx
je 0x401fbf
cmp ebp, ebx
je 0x401faa
mov eax, dword [ebp]
cmp eax, ebx
je 0x401fa1
push eax
call fcn.00411205
add esp, 4
push ebp
call fcn.00410f1a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004104f3
add esp, 0x3c
ret
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0x3c
ret