Function at 0x401670
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x68
mov edi, ecx
mov dword [esp + 0x24], ebp
call fcn.0040db2e
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4016fa
push 0x40
push str.malloc
push 0x42fde8
mov dword [0x42fde0], 0xc9
call fcn.0040d045
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x42fe68], bp
mov dword [0x42fde4], 0x68
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0x18
mov word [0x430276], bp
mov dword [0x430278], 0x56
jmp 0x401afd
push 0x424c94
push edi
call fcn.0040dcb7
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [ebx], esi
jne 0x401786
push 0x40
push str.fopen
push 0x42fde8
mov dword [0x42fde0], 0xd3
call fcn.0040d045
add esp, 0xc
cmp edi, ebp
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
je 0x401752
push 0x104
push edi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x5b
jmp 0x401afd
push 2
push 0xfffffffffffffff9
push esi
call fcn.0040d6d8
push esi
push 2
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.0040d455
add esp, 0x1c
cmp eax, 2
jne 0x40195e
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0040d455
add esp, 0x10
cmp eax, 1
jne 0x40195e
push esi
push 4
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040d455
add esp, 0x10
cmp eax, 4
jne 0x40195e
cmp word [esp + 0x18], 0xfffe
jne 0x4018ba
mov eax, dword [esp + 0x1c]
push ebp
add eax, 0xfffffff9
push eax
push esi
call fcn.0040d6d8
push esi
push 2
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.0040d455
add esp, 0x1c
cmp eax, 2
jne 0x401840
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0040d455
add esp, 0x10
cmp eax, 1
jne 0x401840
push esi
push 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d455
add esp, 0x10
cmp eax, 4
je 0x4018ba
push 0x40
push str.fread
push 0x42fde8
mov dword [0x42fde0], 0xd5
call fcn.0040d045
add esp, 0xc
cmp edi, ebp
mov word [0x42fe68], bp
mov dword [0x42fde4], 4
je 0x401886
push 0x104
push edi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x76
jmp 0x401afd
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push esi
call fcn.0040d6d8
add esp, 0xc
push esi
push 1
lea edx, [esp + 0x2c]
push 0x20
push edx
call fcn.0040d455
add esp, 0x10
cmp eax, 1
je 0x4019d8
push 0x40
push str.fread
push 0x42fde8
mov dword [0x42fde0], 0xd5
call fcn.0040d045
add esp, 0xc
cmp edi, ebp
mov word [0x42fe68], bp
mov dword [0x42fde4], 0x20
je 0x40192a
push 0x104
push edi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x7f
jmp 0x401afd
push 0x40
push str.fread
push 0x42fde8
mov dword [0x42fde0], 0xd5
call fcn.0040d045
add esp, 0xc
cmp edi, ebp
mov word [0x42fe68], bp
mov dword [0x42fde4], 4
je 0x4019a4
push 0x104
push edi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x6a
jmp 0x401afd
mov edi, 0x424ca8
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401ab1
mov edi, 0x424cac
lea esi, [esp + 0x24]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401ab1
mov edi, 0x424cb0
lea esi, [esp + 0x24]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401ab1
push 0x3a4
lea esi, [esp + 0x24]
lea eax, [esp + 0x28]
call fcn.00401560
mov edx, dword [esp + 0x24]
mov esi, eax
push 0x3a4
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.0040cda0
add esp, 8
cmp esi, ebp
mov dword [0x42fde0], 8
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
je 0x401a79
push 0x104
push esi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_arc3.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov eax, esi
mov word [0x430276], bp
mov dword [0x430278], 0x8b
call fcn.004015a0
jmp 0x401afd
movsx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x1c]
xor eax, eax
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 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 + 0x5c], ebp
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ebp
cmp dword [0x42fde0], ebp
je 0x401b36
cmp ebx, ebp
je 0x401b21
mov eax, dword [ebx]
cmp eax, ebp
je 0x401b18
push eax
call fcn.0040d9d5
add esp, 4
push ebx
call fcn.0040da51
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040d036
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.0040d036
add esp, 0x3c
ret