Function at 0x100d4af0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fd2b8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x103b9004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push 0
push dword [ebx + 0x14]
mov dword [ebp - 0x2c], eax
push esi
mov dword [ebp - 0x40], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
lea eax, [ebp - 0x24]
push esi
push 1
push 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x100d5011
movsx eax, byte [ebp - 0x20]
lea ecx, [ebp - 0x48]
shl ax, 8
mov edx, esi
movzx edi, ax
movsx eax, byte [ebp - 0x1f]
movzx eax, ax
or edi, eax
mov dword [ebp - 0x48], 0
mov eax, edi
mov dword [ebp - 0x5c], edi
shl eax, 4
push eax
call fcn.10001d00
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100d5011
cmp dword [eax + 4], 0
je 0x100d5000
push 0x6e616d65
add eax, 0xc
mov dword [ebp - 0x50], 0
push edi
push eax
mov edx, esi
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x50]
call fcn.10001da0
add esp, 0xc
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x28], 0
test edi, edi
je 0x100d4beb
lea edx, [edi + 0xc]
jmp 0x100d4bed
xor edx, edx
push 1
lea ecx, [ebp - 0x28]
call fcn.10001b20
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x100d4fe6
cmp dword [esi + 4], 0
je 0x100d4fcd
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x100d4c23
lea edx, [edi + 0xc]
jmp 0x100d4c25
xor edx, edx
push 2
lea ecx, [ebp - 0x4c]
call fcn.10001b20
add esp, 4
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x100d4c85
mov eax, dword [edi + 4]
cmp eax, 7
jne 0x100d4c5d
push eax
lea ecx, [edi + 0xc]
mov edx, 0x102023a4
call fcn.100a4410
add esp, 4
test eax, eax
je 0x100d4cc8
mov eax, dword [edi + 4]
cmp eax, 6
jne 0x100d4c77
push eax
lea ecx, [edi + 0xc]
mov edx, str.Normal
call fcn.100a4410
add esp, 4
test eax, eax
je 0x100d4cc8
lea eax, [edi + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
jmp 0x100d4c93
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x34], 0x102023b4
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.10086e00
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10087020
lea ecx, [ebp - 0x3c]
call fcn.100844f0
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x100d4cda
lea eax, [esi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
jmp 0x100d4ce8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
push ecx
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.10093530
test eax, eax
jne 0x100d4fb5
push 0x1c
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x100d4fb5
push dword [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x18], 0
call fcn.10086f70
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ecx + 4]
call fcn.10086f70
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ecx + 0x18]
call fcn.10086f70
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x40]
push 0x4f532f32
push dword [ebp - 0x5c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x10]
push dword [ebp - 0x60]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0xc], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
call fcn.10001da0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100d4eb9
cmp dword [eax + 4], 0x56
jl 0x100d4eb9
movzx edx, byte [eax + 0x5a]
movzx ecx, byte [eax + 0x5b]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x5c]
movzx eax, byte [eax + 0x5d]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [ebp - 0x2c], edx
test edx, 0x20000
je 0x100d4e0c
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x100d4e03
push 0x80
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
or dword [eax + 0xc], 4
jmp 0x100d4e0f
mov eax, dword [ebp - 0x30]
test edx, 0x40000
je 0x100d4e3c
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
je 0x100d4e38
push 0x86
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
or dword [eax + 0xc], 0x10
test edx, 0x100000
je 0x100d4e69
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
je 0x100d4e65
push 0x88
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
or dword [eax + 0xc], 8
test edx, 0x280000
je 0x100d4e96
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
je 0x100d4e92
push 0x81
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
or dword [eax + 0xc], 0x20
test edx, edx
jns 0x100d4eb9
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
je 0x100d4eb5
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
or dword [eax + 0xc], 2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x100d4ed1
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.100d2450
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], 0x102023b8
mov dword [ebp - 0x40], 4
or dword [eax + 0xc], 1
mov dword [eax + 8], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.10087fc0
cmp eax, 0xffffffff
jle 0x100d4f16
mov eax, dword [ebp - 0x30]
mov dword [eax + 8], 0x40000
mov eax, 0x40000
mov dword [ebp - 0x2c], eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Italic
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], 6
call fcn.10087fc0
cmp eax, 0xffffffff
jg 0x100d4f56
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Oblique
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], 7
call fcn.10087fc0
cmp eax, 0xffffffff
jle 0x100d4f65
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
or ecx, 0x40
mov dword [ebp - 0x2c], ecx
mov dword [eax + 8], ecx
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Serif
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], 5
call fcn.10087fc0
cmp eax, 0xffffffff
jle 0x100d4f91
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
or ecx, 2
mov dword [eax + 8], ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.10001090
mov eax, ecx
mov ecx, dword [ebp - 0x54]
push eax
call fcn.100933e0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
mov dword [eax], edx
call fcn.100844f0
test edi, edi
je 0x100d4fca
dec dword [edi]
cmp dword [edi], 1
jge 0x100d4fca
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [ebp - 0x50]
test esi, esi
je 0x100d4fe6
dec dword [esi]
cmp dword [esi], 1
jge 0x100d4fe6
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
jmp 0x100d4fec
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x100d4ffd
dec dword [edi]
cmp dword [edi], 1
jge 0x100d4ffd
push edi
call esi
add esp, 4
mov eax, dword [ebp - 0x48]
dec dword [eax]
cmp dword [eax], 1
jge 0x100d5011
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101f3fd0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10