Function at 0x413940
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42fba8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4490c0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4490c0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6c]
push 0xffffffffffffffff
mov edi, ecx
xor ebx, ebx
push ebx
mov ecx, esi
mov byte [esp + 0x1f], 0
call fcn.00401402
mov eax, dword [edi]
cmp eax, 2
jne 0x413ab1
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov dword [esp + 0x64], ebx
lea esp, [esp]
mov eax, dword [edi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00418c92
add esp, 0x10
cmp eax, 1
jne 0x4139ea
mov eax, dword [esp + 0x18]
movzx edx, ax
cmp edx, 0xffffffff
je 0x4139ea
cmp ax, 0xa
je 0x4139ef
push eax
push 1
lea ecx, [esp + 0x44]
call fcn.00410ec0
jmp 0x4139b0
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x40]
mov ebx, 8
cmp dword [esp + 0x54], ebx
jae 0x413a02
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00412ef0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x68], 1
call fcn.00401a85
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x64], 0
jb 0x413a3a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00413f2a
add esp, 4
cmp dword [esi + 0x14], 0
je 0x413a95
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
cmp edi, eax
jbe 0x413a4f
call fcn.00415984
cmp dword [esi + 0x18], ebp
jb 0x413a59
mov eax, dword [esi + 4]
jmp 0x413a5c
lea eax, [esi + 4]
cmp byte [eax + edi], 0xd
jne 0x413a95
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004047f0
push eax
mov ecx, esi
mov byte [esp + 0x68], 2
call fcn.00401a85
cmp dword [esp + 0x38], ebp
jb 0x413a95
mov eax, dword [esp + 0x24]
push eax
call fcn.00413f2a
add esp, 4
cmp dword [esp + 0x54], ebx
jb 0x413c0b
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00413f2a
add esp, 4
jmp 0x413c0b
cmp eax, 1
jne 0x413b9a
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov ebx, 3
mov dword [esp + 0x64], ebx
mov edx, dword [edi + 4]
push edx
call fcn.0041667d
add esp, 4
cmp eax, 0xffffffff
je 0x413af7
cmp eax, 0xa
je 0x413afc
push eax
push 1
lea ecx, [esp + 0x44]
call fcn.00407710
jmp 0x413ad3
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x40]
mov ebp, 0x10
cmp dword [esp + 0x54], ebp
jae 0x413b0f
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00412f30
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x68], 4
call fcn.00401a85
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x64], bl
jb 0x413b41
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00413f2a
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413b81
add eax, 0xffffffff
push eax
mov ecx, esi
call fcn.00401471
cmp byte [eax], 0xd
jne 0x413b81
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004047f0
push eax
mov ecx, esi
mov byte [esp + 0x68], 5
call fcn.00401a85
lea ecx, [esp + 0x20]
call fcn.004015b8
cmp dword [esp + 0x54], ebp
jb 0x413c0b
mov eax, dword [esp + 0x40]
push eax
call fcn.00413f2a
add esp, 4
jmp 0x413c0b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.TextFile::ReadString
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push str..TextFile.cpp
mov dword [esp + 0xa0], 6
call fcn.00401d59
push 0x113
mov ecx, 0x44af08
mov dword [esp + 0xa0], 0xffffffff
call fcn.004089c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.unsupported_encoding_type_
call fcn.00401d59
push ebx
push 0x44af08
call fcn.0040ab20
add esp, 0x24
mov byte [esp + 0x17], 1
cmp dword [esi + 0x14], 0
jne 0x413c1c
cmp byte [esp + 0x17], 0
je 0x413c1c
xor al, al
jmp 0x413c1e
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004157c8
add esp, 0x54
ret 4