Function at 0x401300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x834
mov eax, dword [0x411008]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
or ebp, 0xffffffff
xor ebx, ebx
xor eax, eax
lea ecx, [ecx]
mov word [eax + 0x414460], bx
mov word [eax + 0x412c60], bx
add eax, 0x200
cmp eax, 0x600
jl 0x401320
mov eax, 0x414c60
nop
mov ecx, 3
mov word [eax], bx
add eax, 0x20a
sub ecx, 1
jne 0x401345
cmp eax, 0x41c6b8
jl 0x401340
xor eax, eax
jmp 0x401360
movzx ecx, word [eax + 0x41c6c0]
mov word [esp + eax + 0x420], cx
add eax, 2
cmp cx, bx
jne 0x401360
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x41c8e0]
mov word [esp + eax + 0x62c], cx
add eax, 2
cmp cx, bx
jne 0x401380
lea eax, [esp + 0x62c]
push 0x40e2bc
push eax
call fcn.00403340
add esp, 8
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x4013cd
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00402c59
add esp, 0x834
ret
push esi
push edi
nop
xor edi, edi
lea esi, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 2
push esi
call fcn.0040325f
add esp, 0x10
cmp eax, ebx
je 0x4016cb
cmp word [esi], 0xa
je 0x401406
add edi, 1
add esi, 2
cmp edi, 0x100
jl 0x4013d6
jmp 0x401421
cmp edi, 0x100
jge 0x401421
cmp word [esp + edi*2 + 0x1e], 0xd
lea eax, [esp + edi*2 + 0x20]
mov word [eax], bx
jne 0x401421
mov word [eax - 2], bx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
jmp 0x401430
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401430
sub eax, edx
sar eax, 1
je 0x4013d0
cmp word [esp + 0x20], 0x3b
je 0x4013d0
mov ecx, str._Title_E_
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401478
cmp dx, bx
je 0x401474
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401478
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401452
xor eax, eax
jmp 0x40147d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40148f
mov ebp, 0xfffffffe
mov dword [esp + 0x10], ebx
jmp 0x4013d0
mov ecx, str._Title_J_
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4014be
cmp dx, bx
je 0x4014ba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4014be
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401498
xor eax, eax
jmp 0x4014c3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4014d9
mov ebp, 0xfffffffe
mov dword [esp + 0x10], 1
jmp 0x4013d0
mov ecx, str._Title_C_
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401508
cmp dx, bx
je 0x401504
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401508
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4014e2
xor eax, eax
jmp 0x40150d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401523
mov ebp, 0xfffffffe
mov dword [esp + 0x10], 2
jmp 0x4013d0
push 9
lea edx, [esp + 0x24]
push str._Process_
push edx
call fcn.00402f8e
add esp, 0xc
test eax, eax
jne 0x4015a2
lea eax, [esp + 0x32]
push eax
call fcn.00402c32
mov ebp, eax
add esp, 4
cmp ebp, ebx
jle 0x401555
cmp ebp, 0x14
jl 0x401572
cmp ebp, ebx
jne 0x4016c3
mov ecx, dword [esp + 0x32]
push 4
push ecx
call fcn.00402f20
add esp, 8
test eax, eax
je 0x4016c3
mov eax, ebp
imul eax, eax, 0x61e
mov dword [esp + 0x10], ebx
add eax, 0x414c60
mov ecx, 3
jmp 0x401590
mov word [eax], bx
add eax, 0x20a
sub ecx, 1
jne 0x401590
jmp 0x4013d0
cmp ebp, 0xfffffffe
jne 0x4015d9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
shl edx, 9
mov ecx, eax
sub edx, ecx
lea edx, [edx + 0x414460]
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4015c0
mov ebp, 0xfffffffd
jmp 0x4013d0
cmp ebp, 0xfffffffd
jne 0x40160a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
shl edx, 9
mov ecx, eax
sub edx, ecx
lea edx, [edx + 0x412c60]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4015f3
or ebp, 0xffffffff
jmp 0x4013d0
cmp ebp, ebx
jl 0x4013d0
lea esi, [esp + 0x20]
mov eax, esi
lea edx, [eax + 2]
jmp 0x401620
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401620
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp eax, ebx
jle 0x401645
cmp word [esi], 0x20
jne 0x401645
add ecx, 1
add esi, 2
cmp ecx, eax
jl 0x401635
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401650
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x4016af
xor edx, edx
cmp eax, ebx
lea ecx, [esi + eax*2 - 2]
jle 0x401683
lea ecx, [ecx]
cmp word [ecx], 0x20
jne 0x401683
mov word [ecx], bx
add edx, 1
sub ecx, 2
cmp edx, eax
jl 0x401670
mov edx, dword [esp + 0x10]
lea edx, [edx + ebp*2]
add edx, ebp
imul edx, edx, 0x20a
sub edx, esi
mov eax, esi
lea edx, [edx + 0x414c60]
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4016a0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 3
mov dword [esp + 0x10], eax
jne 0x4013d0
or ebp, 0xffffffff
jmp 0x4013d0
mov eax, dword [esp + 0x14]
push eax
call fcn.00402da0
add esp, 4
test eax, eax
je 0x4016e3
xor eax, eax
jmp 0x401930
mov dword [esp + 0x1c], ebx
jmp 0x4016f0
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x61e
lea ecx, [eax + 0x414c60]
mov dword [esp + 0x10], ecx
mov ecx, eax
lea edx, [esp + 0x22]
sub ecx, edx
lea ebx, [esp + 0x20]
add ecx, 0x414c60
sub ebx, eax
mov ebp, 0x417d50
mov dword [esp + 0x14], ecx
sub ebx, 0x414c60
mov dword [esp + 0x18], 0
nop
mov eax, dword [esp + 0x10]
movzx eax, word [eax]
test ax, ax
je 0x4018f2
mov ecx, dword [esp + 0x1c]
cmp ecx, 6
jne 0x40177e
mov edi, dword [esp + 0x18]
lea edi, [edi + 0x413860]
lea esi, [ebp - 0xc3c]
mov edx, edi
mov eax, esi
sub edx, esi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401760
push esi
push edi
call fcn.00401cf0
add esp, 8
jmp 0x4018f2
cmp ecx, 8
jne 0x4017b1
mov esi, dword [esp + 0x18]
lea esi, [esi + 0x413e60]
mov edx, esi
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401793
push ebp
push esi
call fcn.00401cf0
add esp, 8
jmp 0x4018f2
cmp ecx, 0x12
jne 0x4017ee
mov edi, dword [esp + 0x18]
lea edi, [edi + 0x413260]
lea esi, [ebp + 0x3d2c]
mov edx, edi
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4017d0
push esi
push edi
call fcn.00401cf0
add esp, 8
jmp 0x4018f2
cmp ax, 0x5c
mov eax, dword [esp + 0x10]
jne 0x401834
jmp 0x401800
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x401800
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x22]
jmp 0x401820
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401820
jmp 0x4018f2
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x401834
cmp word [esp + 0x20], 0x22
jne 0x401893
lea ecx, [esp + 0x22]
push 0x22
push ecx
call fcn.00402c37
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
lea edx, [esp + 0x22]
lea eax, [esp + 0x428]
je 0x401883
push edx
push 0x5c
push eax
push 0x22
push str._c_s_c_s
push ecx
call fcn.00402c68
add esp, 0x18
jmp 0x4018f2
push 0x22
push edx
push 0x5c
push eax
push 0x22
push str._c_s_c_s_c
push ecx
jmp 0x4018ea
lea edx, [esp + 0x20]
push 0x20
push edx
call fcn.00402c37
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
lea ecx, [esp + 0x428]
je 0x4018d8
mov word [eax], 0
add eax, 2
push eax
push 0x20
push 0x22
lea eax, [esp + 0x2c]
push eax
push 0x5c
push ecx
push 0x22
push str._c_s_c_s_c_c_s
push edx
call fcn.00402c68
add esp, 0x24
jmp 0x4018f2
push 0x22
lea eax, [esp + 0x24]
push eax
push 0x5c
push ecx
push 0x22
push str._c_s_c_s_c
push edx
call fcn.00402c68
add esp, 0x1c
add dword [esp + 0x18], 0x200
mov eax, 0x20a
add dword [esp + 0x10], eax
add dword [esp + 0x14], eax
add ebp, eax
sub ebx, eax
cmp ebp, 0x41836e
jl 0x401730
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x1c], eax
jl 0x4016f0
mov eax, 1
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402c59
add esp, 0x834
ret