Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x40689c]
sub esp, 0x21c
add eax, 0xfffffff5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
test eax, eax
mov dword [0x406890], eax
je 0x40131e
mov esi, 7
mov ecx, dword [0x406030]
push 0
push 0
push eax
push ecx
call ebp
mov ecx, dword [0x406030]
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push ecx
call ebx
test eax, eax
jne 0x401286
push str.File_IO_Error
call fcn.004010b0
add esp, 4
cmp dword [esp + 0x1c], 4
je 0x40129a
push str.Read_past_end_of_file_
call fcn.004010b0
add esp, 4
lea edx, [esp + 0x18]
push 4
push edx
push str._EXT
call fcn.00401970
add esp, 0xc
test eax, eax
jne 0x401302
mov edx, dword [0x406030]
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push esi
push ecx
push edx
call ebx
test eax, eax
jne 0x4012d8
push str.File_IO_Error
call fcn.004010b0
add esp, 4
cmp dword [esp + 0x20], esi
je 0x4012eb
push str.Read_past_end_of_file_
call fcn.004010b0
add esp, 4
lea eax, [esp + 0x24]
push esi
push eax
push str.RACTOR_
call fcn.00401970
add esp, 0xc
test eax, eax
je 0x401315
mov eax, dword [0x406890]
dec eax
mov dword [0x406890], eax
jne 0x401250
jmp 0x40131e
mov eax, dword [0x406890]
test eax, eax
jne 0x401330
push str.No_files_to_extract
call fcn.004010b0
mov eax, dword [0x406890]
add esp, 4
mov ecx, dword [0x406030]
mov dword [0x406898], eax
add eax, 0xb
push 0
push 0
push eax
push ecx
mov dword [0x406890], eax
call ebp
push 0x406590
call fcn.004011b0
push 0x406690
call fcn.004011b0
lea edx, [esp + 0x34]
push edx
call fcn.004011b0
add esp, 0xc
mov esi, str._END_
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401399
test cl, cl
je 0x401395
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401399
add eax, 2
add esi, 2
test cl, cl
jne 0x401375
xor eax, eax
jmp 0x40139e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40140a
lea eax, [esp + 0x12c]
push eax
call fcn.004011b0
lea ecx, [esp + 0x130]
push ecx
call fcn.0040195b
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00401000
lea eax, [esp + 0x3c]
push eax
call fcn.004011b0
add esp, 0x14
mov esi, str._END_
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401401
test cl, cl
je 0x4013fd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401401
add eax, 2
add esi, 2
test cl, cl
jne 0x4013dd
xor eax, eax
jmp 0x401406
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013a2
mov eax, dword [0x406030]
push 1
push 0
push 0
push eax
call ebp
mov edi, dword [0x4068a0]
mov dword [0x406890], eax
mov eax, edi
xor ecx, ecx
test eax, eax
mov dword [0x406894], ecx
je 0x401441
add ecx, dword [eax + 4]
mov dword [0x406894], ecx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x401431
mov esi, dword [0x406898]
mov eax, dword [0x40689c]
sub esi, ecx
cmp esi, eax
jbe 0x40145f
push str.Corrupt_file
call fcn.004010b0
add esp, 4
test edi, edi
je 0x401472
mov ecx, dword [edi + 4]
mov dword [edi + 8], esi
mov edi, dword [edi + 0xc]
add esi, ecx
test edi, edi
jne 0x401463
mov ecx, dword [0x406030]
push 0
push 0
push esi
push ecx
call ebp
mov ecx, dword [0x406030]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push ecx
call ebx
test eax, eax
jne 0x4014a8
push str.File_IO_Error
call fcn.004010b0
add esp, 4
cmp dword [esp + 0x10], 4
je 0x4014e0
mov ecx, dword [0x40689c]
mov esi, dword [0x406894]
mov eax, dword [0x4068a0]
sub ecx, esi
test eax, eax
je 0x401505
mov esi, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax + 0xc]
add ecx, esi
test eax, eax
jne 0x4014c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push 4
lea edx, [esp + 0x18]
push str._EXT
push edx
call fcn.00401970
add esp, 0xc
test eax, eax
je 0x401505
push str.Corrupt_File
call fcn.004010b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret