Function at 0x100dd350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101203f1
mov eax, dword fs:[0]
push eax
sub esp, 0x128
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 - 0xdc], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xdc]
call fcn.100de300
push 0x10127e07
lea ecx, [ebp - 0x28]
call fcn.10007fa0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xdc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push eax
call fcn.10002200
mov dword [ebp - 0x118], eax
call fcn.1004ed30
add esp, 0x18
mov byte [ebp - 0xd4], al
movzx eax, byte [ebp - 0xd4]
test eax, eax
je 0x100dd5fa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x1013e914
call fcn.10002200
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xdc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call fcn.10002200
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 2
call fcn.100ca830
add esp, 0x30
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xe4], edx
cmp dword [ebp - 0xe4], 0
jne 0x100dd49b
mov ecx, dword [ebp - 0xdc]
call fcn.100de320
mov byte [ebp - 0xd2], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10008000
mov al, byte [ebp - 0xd2]
jmp 0x100dd879
push 2
push 0
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
mov eax, dword [ebp - 0xe8]
add eax, 1
push eax
call fcn.1010d140
add esp, 4
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xe0]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
push 1
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10006c60
mov byte [ebp - 4], 4
cmp dword [ebp - 0xe0], 0
je 0x100dd590
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0xe0], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea eax, [ebp - 0xa0]
push eax
call fcn.10007d30
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0xdc]
call fcn.100ddd60
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006c90
lea ecx, [ebp - 0xb8]
call fcn.10008000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10008000
mov byte [ebp - 0xd1], 0
lea ecx, [ebp - 0x40]
call fcn.10007e50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
jne 0x100dd7a7
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.10007d30
mov byte [ebp - 4], 6
mov eax, 1
test eax, eax
je 0x100dd79b
lea ecx, [ebp - 0x58]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
je 0x100dd651
jmp 0x100dd79b
push 0
push 0x1013e910
lea ecx, [ebp - 0x58]
call fcn.10006d20
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0xffffffff
jne 0x100dd674
jmp 0x100dd79b
mov edx, dword [ebp - 0xec]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.10006d60
mov byte [ebp - 4], 7
push 0
push 0x1013e920
lea ecx, [ebp - 0x70]
call fcn.10006d20
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x70]
call fcn.10006d60
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
call fcn.10001ca0
push eax
lea ecx, [ebp + 8]
call fcn.10006d10
push eax
lea ecx, [ebp - 0x88]
call fcn.10006d10
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100dd727
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1013e91c
lea ecx, [ebp - 0x40]
call fcn.10007f60
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1013e928
lea ecx, [ebp - 0x40]
call fcn.10007f60
mov byte [ebp - 0xd1], 1
jmp 0x100dd740
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1013e924
lea ecx, [ebp - 0x40]
call fcn.10007f60
push 0xffffffffffffffff
mov eax, dword [ebp - 0xec]
add eax, 2
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10006d60
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x58]
call fcn.10006c90
lea ecx, [ebp - 0xd0]
call fcn.10008000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10008000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.10008000
jmp 0x100dd630
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10008000
movzx eax, byte [ebp - 0xd1]
test eax, eax
jne 0x100dd7e6
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100080f0
push 0x1013e930
lea ecx, [ebp - 0x28]
call fcn.10007f60
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x28]
call fcn.100080f0
push 0x1013e92c
lea ecx, [ebp - 0x28]
call fcn.10007f60
jmp 0x100dd7f2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007dd0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10007d30
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0xdc]
call fcn.100de340
mov byte [ebp - 0xd6], al
mov al, byte [ebp - 0xd6]
mov byte [ebp - 0xd3], al
mov ecx, dword [ebp - 0xdc]
call fcn.100de320
mov cl, byte [ebp - 0xd3]
mov byte [ebp - 0xd5], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10008000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10008000
mov al, byte [ebp - 0xd5]
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 0x30