Function at 0x413620
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42fb51
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4490c0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x64]
cmp dword [esi + 0x14], ebx
je 0x413810
call fcn.00413580
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [ebp], eax
jne 0x413678
push esi
call fcn.004135b0
add esp, 4
mov dword [ebp], eax
mov edi, dword [esp + 0x68]
cmp edi, 2
jne 0x4136b1
push esi
lea ecx, [esp + 0x20]
call fcn.00405d30
lea eax, [esp + 0x1c]
mov ebx, 1
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x1c], ebx
call fcn.0040b270
add esp, 4
test al, al
mov byte [esp + 0x64], bl
je 0x4136b6
mov byte [esp + 0x64], 0
test bl, 1
mov dword [esp + 0x5c], 0xffffffff
je 0x4136cc
lea ecx, [esp + 0x1c]
call fcn.00403e00
cmp byte [esp + 0x64], 0
je 0x4136df
mov dword [esp + 0x68], 1
mov edi, dword [esp + 0x68]
cmp dword [ebp], 0
je 0x413810
mov cx, word [0x43ef94]
mov dl, byte [0x43ef96]
mov eax, edi
sub eax, 0
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
je 0x413825
sub eax, 1
je 0x41381e
sub eax, 1
je 0x413817
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x80], esp
push str.TextFile::Open
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xa4], esp
push str..TextFile.cpp
mov dword [esp + 0x98], 1
call fcn.00401d59
or ebx, 0xffffffff
push 0x91
mov ecx, 0x44af08
mov dword [esp + 0x98], ebx
call fcn.004089c0
cmp dword [esi + 0x18], 0x10
jb 0x413777
mov esi, dword [esi + 4]
jmp 0x41377a
add esi, 4
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push str._s_:_attempted_to_open_with_an_unknown_mode:
call fcn.00401d59
push 0
push 0x44af08
call fcn.0040ab20
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x80], esp
push str.TextFile::Open
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xa4], esp
push str..TextFile.cpp
mov dword [esp + 0x98], 2
call fcn.00401d59
push 0x92
mov ecx, 0x44af08
mov dword [esp + 0x98], ebx
call fcn.004089c0
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x43fa30
call fcn.00401d59
push 0
push 0x44af08
call fcn.0040ab20
add esp, 0x28
xor al, al
jmp 0x41391b
mov byte [esp + 0x14], 0x61
jmp 0x41382a
mov byte [esp + 0x14], 0x77
jmp 0x41382a
mov byte [esp + 0x14], 0x72
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
lea edi, [esi + 4]
jb 0x41383b
mov eax, dword [edi]
jmp 0x41383d
mov eax, edi
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00418d71
add esp, 8
test eax, eax
mov dword [ebp + 4], eax
jne 0x4138d8
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x80], esp
push str.TextFile::Open
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xa4], esp
push str..TextFile.cpp
mov dword [esp + 0x98], 3
call fcn.00401d59
push 0x9a
mov ecx, 0x44af08
mov dword [esp + 0x98], 0xffffffff
call fcn.004089c0
cmp dword [esi + 0x18], ebx
jb 0x4138ae
mov edi, dword [edi]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push 0x43fa1c
call fcn.00401d59
push 0
push 0x44af08
call fcn.0040ab20
add esp, 0x28
xor al, al
jmp 0x41391b
cmp dword [ebp], 2
jne 0x413919
mov ecx, dword [esp + 0x68]
sub ecx, 0
je 0x413907
sub ecx, 1
jne 0x413919
push eax
push 0xff
call fcn.004167b4
mov edx, dword [ebp + 4]
push edx
push 0xfe
call fcn.004167b4
jmp 0x413916
push eax
push 1
lea eax, [esp + 0x70]
push 2
push eax
call fcn.00418c92
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc