Function at 0x10001e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f64e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x103b9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
push ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
lea eax, [ebp - 0x20]
push ebx
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 0x100022f8
movsx eax, byte [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
shl ax, 8
mov edx, ebx
movzx edi, ax
movsx eax, byte [ebp - 0x1b]
movzx eax, ax
or edi, eax
mov dword [ebp - 0x2c], 0
mov eax, edi
mov dword [ebp - 0x4c], edi
shl eax, 4
push eax
call fcn.10001d00
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x100022f8
cmp dword [esi + 4], 0
je 0x100022e7
push 0x6e616d65
lea eax, [esi + 0xc]
mov dword [ebp - 0x3c], 0
push edi
push eax
mov edx, ebx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x3c]
call fcn.10001da0
add esp, 0xc
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x100022e7
cmp dword [edi + 4], 0
je 0x100022d4
push 1
lea edx, [edi + 0xc]
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
call fcn.10001b20
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x100022d1
cmp dword [esi + 4], 0
je 0x100022b5
push 2
lea edx, [edi + 0xc]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
call fcn.10001b20
add esp, 4
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x10001fde
mov ebx, dword [edi + 4]
cmp ebx, 7
jne 0x10001fb9
push ebx
lea ecx, [edi + 0xc]
mov edx, 0x102023a4
call fcn.100a4410
add esp, 4
test eax, eax
je 0x10002021
cmp ebx, 6
jne 0x10001fd3
push ebx
lea ecx, [edi + 0xc]
mov edx, str.Normal
call fcn.100a4410
add esp, 4
test eax, eax
je 0x10002021
lea eax, [edi + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
jmp 0x10001fec
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], 0x102023b4
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.10086e00
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.10087020
lea ecx, [ebp - 0x28]
call fcn.100844f0
mov esi, dword [ebp - 0x24]
push 0x38
call fcn.101f3fe1
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
push 0x38
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov dword [ebx], vtable.CPDSDK_FolderInfo.0
lea edx, [esi + 0xc]
mov dword [ebx + 4], 0
add esp, 0xc
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 4
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
test esi, esi
jne 0x100020aa
mov edx, 0x10202374
push ecx
lea ecx, [ebp - 0x28]
call fcn.10084ce0
add esp, 4
lea ecx, [ebx + 8]
push eax
call fcn.10084780
lea ecx, [ebp - 0x28]
call fcn.100844f0
lea edx, [esi + 0xc]
test esi, esi
jne 0x100020d3
mov edx, 0x10202374
push ecx
lea ecx, [ebp - 0x28]
call fcn.10084ce0
add esp, 4
lea ecx, [ebx + 0xc]
push eax
call fcn.10084780
lea ecx, [ebp - 0x28]
call fcn.100844f0
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
test edx, edx
je 0x100020fe
add edx, 0xc
jmp 0x10002103
mov edx, 0x10202374
push ecx
lea ecx, [ebp - 0x48]
call fcn.10084ce0
add esp, 4
lea ecx, [ebx + 4]
push eax
call fcn.10084780
lea ecx, [ebp - 0x48]
call fcn.100844f0
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
push 0x4f532f32
push dword [ebp - 0x4c]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x50]
call fcn.10001da0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100021e9
cmp dword [eax + 4], 0x56
jl 0x100021e9
movzx ebx, byte [eax + 0x5a]
movzx ecx, byte [eax + 0x5b]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 0x5c]
movzx eax, byte [eax + 0x5d]
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, eax
test ebx, 0x20000
je 0x10002190
mov ecx, dword [ebp - 0x30]
push 0x80
lea ecx, [ecx + 0x20]
call fcn.100023f0
test ebx, 0x40000
je 0x100021a8
mov ecx, dword [ebp - 0x30]
push 0x86
lea ecx, [ecx + 0x20]
call fcn.100023f0
test ebx, 0x100000
je 0x100021c0
mov ecx, dword [ebp - 0x30]
push 0x88
lea ecx, [ecx + 0x20]
call fcn.100023f0
test ebx, 0x280000
je 0x100021d8
mov ecx, dword [ebp - 0x30]
push 0x81
lea ecx, [ecx + 0x20]
call fcn.100023f0
test ebx, ebx
mov ebx, dword [ebp - 0x30]
jns 0x100021e9
push 2
lea ecx, [ebx + 0x20]
call fcn.100023f0
push 0
lea ecx, [ebx + 0x20]
call fcn.100023f0
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x102023b8
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 4
call fcn.10087fc0
cmp eax, 0xffffffff
jle 0x1000221a
mov dword [ebx + 0x14], 1
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Italic
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 6
call fcn.10087fc0
cmp eax, 0xffffffff
jg 0x1000225a
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Oblique
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 7
call fcn.10087fc0
cmp eax, 0xffffffff
jle 0x10002261
mov dword [ebx + 0x10], 1
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x28]
jge 0x10002272
inc eax
mov dword [ebx + 0x24], eax
jmp 0x10002281
push ecx
inc eax
lea ecx, [ebx + 0x1c]
push eax
call fcn.10088940
test eax, eax
je 0x1000228e
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x30]
mov dword [eax + ecx*4 - 4], edx
lea ecx, [ebp - 0x28]
call fcn.100844f0
test edi, edi
je 0x100022b2
dec dword [edi]
cmp dword [edi], 1
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jge 0x100022ad
push edi
call ebx
add esp, 4
mov edi, dword [ebp - 0x3c]
jmp 0x100022bb
mov edi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
je 0x100022cc
dec dword [esi]
cmp dword [esi], 1
jge 0x100022cc
push esi
call ebx
add esp, 4
mov esi, dword [ebp - 0x2c]
jmp 0x100022da
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
dec dword [edi]
cmp dword [edi], 1
jge 0x100022e7
push edi
call ebx
add esp, 4
dec dword [esi]
cmp dword [esi], 1
jge 0x100022f8
push esi
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret 0x10