Function at 0x100dd8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012045e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x10165034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xcc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
push eax
call fcn.10002200
mov dword [ebp - 0x100], eax
call fcn.1004ed30
add esp, 0x18
mov byte [ebp - 0xb9], al
movzx eax, byte [ebp - 0xb9]
test eax, eax
je 0x100dd92c
lea ecx, [ebp + 0xc]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
je 0x100dd95f
push 0x10127e19
mov ecx, dword [ebp + 8]
call fcn.10007fa0
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
mov eax, dword [ebp + 8]
jmp 0x100ddd14
mov ecx, dword [ebp - 0xcc]
call fcn.100de300
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
push 0x1013e934
call fcn.10002200
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
call fcn.10002200
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0
call fcn.100ca830
add esp, 0x30
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0
jne 0x100dda19
mov ecx, dword [ebp - 0xcc]
call fcn.100de320
push 0
mov ecx, dword [ebp + 8]
call fcn.10007fa0
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
mov eax, dword [ebp + 8]
jmp 0x100ddd14
push 2
push 0
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
mov eax, dword [ebp - 0xd0]
add eax, 1
push eax
call fcn.1010d140
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xd0]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xc0]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
push ecx
push 1
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.10006c60
mov byte [ebp - 4], 2
cmp dword [ebp - 0xc0], 0
je 0x100ddb0e
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0xc0], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10c], esp
lea eax, [ebp - 0x88]
push eax
call fcn.10007d30
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xcc]
call fcn.100ddd60
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xcc]
call fcn.100de320
push 0x10127e1a
lea ecx, [ebp - 0x58]
call fcn.10007fa0
mov byte [ebp - 4], 4
mov edx, 1
test edx, edx
je 0x100ddcc0
lea ecx, [ebp - 0x28]
call fcn.10002c30
movzx eax, al
test eax, eax
je 0x100ddb81
jmp 0x100ddcc0
push 0
push 0x1013e93c
lea ecx, [ebp - 0x28]
call fcn.10006d20
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x100ddba4
jmp 0x100ddcc0
mov ecx, dword [ebp - 0xd4]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.10006d60
mov byte [ebp - 4], 5
push 0
push 0x1013e948
lea ecx, [ebp - 0x40]
call fcn.10006d20
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
push eax
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10006d60
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xc]
call fcn.10001ca0
push eax
lea ecx, [ebp + 0xc]
call fcn.10006d10
push eax
lea ecx, [ebp - 0x70]
call fcn.10006d10
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100ddc68
push 0xffffffffffffffff
mov edx, dword [ebp - 0xd8]
add edx, 1
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x40]
call fcn.10006d60
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10006c90
lea ecx, [ebp - 0xb8]
call fcn.10008000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10008000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10008000
jmp 0x100ddcc0
push 0xffffffffffffffff
mov edx, dword [ebp - 0xd4]
add edx, 2
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006d60
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006c90
lea ecx, [ebp - 0xa0]
call fcn.10008000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10008000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10008000
jmp 0x100ddb60
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.10007d60
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10008000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101176fb
mov esp, ebp
pop ebp
ret 0x1c