Function at 0x4071c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x30]
mov ebp, edx
push edi
mov edi, dword [ecx + 4]
mov ebx, 0x100
movzx ecx, byte [esi + edi]
lea edx, [esi + edi]
movzx eax, byte [edx + 1]
imul ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
add cx, ax
movzx eax, cx
mov dword [esp + 0x1c], eax
test ax, ax
jne 0x40721a
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
add eax, 0xfffffffa
add eax, ecx
cmp ebp, eax
jge 0x40727b
movzx eax, byte [edx + ebp + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, 6
jne 0x40725f
movzx eax, byte [edx + 6]
movzx ebx, byte [edx + 7]
shl eax, 8
add ebx, eax
cmp ebp, ebx
jb 0x40727b
movzx eax, byte [edx + 9]
movzx ecx, byte [edx + 8]
add eax, ebx
shl ecx, 8
add ecx, eax
cmp ebp, ecx
jae 0x40727b
sub ebp, ebx
lea ecx, [esi + ebp*2]
movzx eax, byte [ecx + edi + 0xa]
movzx ecx, byte [ecx + edi + 0xb]
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0x14
ret
cmp eax, 2
jne 0x407285
push 0x5ea
push str.C:UsersVoidDesktopEriks_StuffProjectsBitLibraryBitLibraryDependencies_stb_truetype.h
push 0x4a2ce8
call fcn.0047bb5b
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, 4
jne 0x407421
movzx ecx, byte [edx + 6]
add esi, 0xe
movzx eax, byte [edx + 7]
imul ecx, ebx
mov dword [esp + 0x20], esi
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 8]
imul ecx, ebx
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 9]
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 0xa]
imul ecx, ebx
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 0xb]
add cx, ax
movzx ebx, cx
mov dword [esp + 0x18], ebx
cmp ebp, 0xffff
jg 0x40727b
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
add ecx, eax
shr ecx, 1
lea edx, [esi + ecx*2]
movzx eax, byte [edx + edi]
movzx ecx, byte [edx + edi + 1]
shl eax, 8
add ecx, eax
cmp ebp, ecx
cmovge esi, edx
sub esi, 2
test bx, bx
je 0x407342
mov bx, word [esp + 0x1c]
shr bx, 1
movzx eax, bx
lea edx, [esi + eax*2]
movzx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x18]
cmp ebp, ecx
cmovg esi, edx
add eax, 0xffff
mov dword [esp + 0x18], eax
test ax, ax
jne 0x407314
mov ecx, dword [esp + 0x20]
sub esi, ecx
mov eax, dword [esp + 0x10]
add esi, 2
mov ebx, dword [esp + 0x14]
shr esi, 1
movzx eax, ax
movzx edx, si
add eax, edx
mov dword [esp + 0x18], edx
lea esi, [ecx + edx*2]
lea eax, [ebx + eax*2]
movzx ecx, byte [eax + edi + 0x11]
movzx eax, byte [eax + edi + 0x10]
shl eax, 8
add ecx, eax
mov dword [esp + 0x20], ecx
cmp ebp, ecx
jl 0x40727b
movzx ecx, byte [esi + edi]
movzx eax, byte [esi + edi + 1]
shl ecx, 8
add ecx, eax
cmp ebp, ecx
jg 0x40727b
mov ecx, dword [esp + 0x10]
movzx eax, cx
lea esi, [eax + eax*2]
lea eax, [esi + edx]
lea edx, [ebx + eax*2]
mov eax, 0x100
movzx ecx, byte [edx + edi + 0x10]
imul ecx, eax
movzx eax, byte [edx + edi + 0x11]
add cx, ax
movzx ecx, cx
test cx, cx
jne 0x4073fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx ecx, dx
lea eax, [eax + ecx*2]
lea eax, [eax + 8]
lea edx, [ebx + eax*2]
mov eax, 0x100
movzx ecx, byte [edx + edi]
imul ecx, eax
movzx eax, byte [edx + edi + 1]
pop edi
pop esi
add cx, ax
add cx, bp
pop ebp
movzx eax, cx
pop ebx
add esp, 0x14
ret
sub esi, dword [esp + 0x20]
add ecx, ebx
add esi, dword [esp + 0x18]
add esi, ebp
lea ecx, [ecx + esi*2]
movzx eax, byte [ecx + edi + 0x10]
movzx ecx, byte [ecx + edi + 0x11]
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0x14
ret
cmp eax, 0xc
je 0x407435
cmp eax, 0xd
je 0x407435
push 0x631
jmp 0x407269
movzx ebx, byte [edx + 0xc]
xor ecx, ecx
movzx eax, byte [edx + 0xd]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 0xe]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 0xf]
shl ebx, 8
add ebx, eax
test ebx, ebx
jle 0x40727b
nop
mov edx, ebx
sub edx, ecx
sar edx, 1
add edx, ecx
lea eax, [edx + edx*2]
shl eax, 2
mov dword [esp + 0x20], eax
add eax, esi
movzx esi, byte [edi + eax + 0x10]
add edi, eax
shl esi, 8
movzx eax, byte [edi + 0x11]
add esi, eax
movzx eax, byte [edi + 0x12]
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x13]
shl esi, 8
add esi, eax
cmp ebp, esi
jae 0x40749e
mov ebx, edx
jmp 0x4074c4
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
add ecx, eax
cmp ebp, ecx
jbe 0x4074da
lea ecx, [edx + 1]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, ebx
jl 0x407460
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add ecx, 0x18
add ecx, eax
call fcn.00406910
cmp word [esp + 0x1c], 0xc
jne 0x40727d
pop edi
sub eax, esi
pop esi
add eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret