Function at 0x467210
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x6794f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x110], ebx
cmp dword [ebx + 0x3c], 0
jg 0x46724b
push 0x63c
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui_draw.cpp
push str.atlas__ConfigData.Size___0
call fcn.00531ca7
add esp, 0xc
cmp dword [ebx + 0x48], 0
jge 0x4672ad
lea eax, [ebp - 0x198]
mov dword [ebp - 0x190], 0xffffffff
push eax
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x198], 0x80000000
mov dword [ebp - 0x194], 0x1b00b5
call fcn.0046a800
mov eax, dword [ebx + 0x30]
dec eax
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebx], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
test ecx, ecx
je 0x4672ed
mov eax, dword [0x67c358]
push ecx
dec dword [eax + 0x314]
mov eax, dword [eax + 0xc4]
call eax
add esp, 4
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x46730b
mov eax, dword [0x67c358]
push ecx
dec dword [eax + 0x314]
mov eax, dword [eax + 0xc4]
call eax
add esp, 4
mov ecx, dword [ebp - 0x110]
xor edi, edi
mov dword [ebx + 0xc], 0
xor esi, esi
mov dword [ebx + 0x10], 0
xor ebx, ebx
mov dword [ebp - 0x114], edi
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x11c], esi
test eax, eax
jle 0x4673d6
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
cmp ebx, eax
jl 0x467365
push 0x40c
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui.h
push str.i___Size
call fcn.00531ca7
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x44]
mov edx, dword [eax + ecx + 0x30]
test edx, edx
jne 0x467383
mov dword [eax + ecx + 0x30], 0x66a978
mov edx, 0x66a978
cmp word [edx], 0
je 0x4673bf
nop dword [eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x4673ad
mov ecx, eax
inc edi
movzx eax, word [edx]
inc esi
add edx, 4
sub ecx, eax
add edi, ecx
cmp word [edx], 0
jne 0x467390
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x114], edi
mov eax, dword [ebp - 0x110]
inc ebx
add ecx, 0x64
mov dword [ebp - 0x10c], ecx
mov eax, dword [eax + 0x3c]
cmp ebx, eax
jl 0x467365
mov eax, dword [ebp - 0x110]
mov ebx, dword [eax + 4]
test ebx, ebx
jg 0x467414
cmp edi, 0xfa0
jle 0x4673f2
mov ebx, 0x1000
jmp 0x467414
cmp edi, 0x7d0
jle 0x467401
mov ebx, 0x800
jmp 0x467414
cmp edi, 0x3e8
mov ebx, 0x200
mov ecx, 0x400
cmovg ebx, ecx
mov dword [eax + 0x14], ebx
xorps xmm0, xmm0
mov dword [eax + 0x18], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x10c], eax
mov eax, dword [0x67c358]
push 0x30
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
inc dword [eax + 0x314]
mov eax, dword [eax + 0xc0]
movlpd qword [ebp - 0x16c], xmm0
movlpd qword [ebp - 0x15c], xmm0
call eax
mov ecx, dword [0x67c358]
add esp, 4
mov dword [ebp - 0x124], eax
mov eax, ebx
sub eax, dword [ebp - 0x10c]
mov dword [ebp - 0x118], eax
inc dword [ecx + 0x314]
mov edx, dword [ecx + 0xc0]
lea ecx, [eax*8]
push ecx
call edx
mov edx, dword [ebp - 0x124]
add esp, 4
mov ecx, eax
test edx, edx
je 0x4674fa
test ecx, ecx
je 0x4674f7
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x178], edx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x168], eax
mov eax, 0x8000
sub eax, dword [ebp - 0x10c]
push edx
push ecx
mov dword [ebp - 0x158], ecx
mov ecx, dword [ebp - 0x124]
push eax
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], 0x8000
mov dword [ebp - 0x16c], ebx
call fcn.0045cc80
add esp, 0xc
jmp 0x467515
push edx
jmp 0x4674ff
test ecx, ecx
je 0x467515
push ecx
mov eax, dword [0x67c358]
dec dword [eax + 0x314]
mov eax, dword [eax + 0xc4]
call eax
add esp, 4
mov ebx, dword [ebp - 0x110]
mov eax, 1
mov edx, dword [ebp - 0x178]
mov ecx, ebx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x120], eax
call fcn.00468190
imul ecx, dword [ebx + 0x3c], 0x88
mov eax, dword [0x67c358]
inc dword [eax + 0x314]
mov eax, dword [eax + 0xc0]
push ecx
call eax
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x110]
xor ebx, ebx
mov dword [ebp - 0x138], edx
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jle 0x467654
xor eax, eax
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x10c], eax
cmp ebx, ecx
jl 0x4675a1
push 0x40c
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui.h
push str.i___Size
call fcn.00531ca7
mov eax, dword [ebp - 0x10c]
add esp, 0xc
mov ecx, dword [ebp - 0x110]
mov esi, dword [ecx + 0x44]
add esi, eax
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4675be
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4675d5
cmp eax, ecx
je 0x4675d5
push 0x66d
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui_draw.cpp
push str.cfg.DstFont____cfg.DstFont__IsLoaded____cfg.DstFont__ContainerAtlas__atlas_
call fcn.00531ca7
add esp, 0xc
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
call fcn.0045dbd0
mov dword [ebp - 0x128], eax
test eax, eax
jns 0x467606
push 0x670
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui_draw.cpp
push str.font_offset___0
call fcn.00531ca7
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov edx, dword [esi]
mov esi, dword [ebp - 0x124]
mov ecx, esi
push eax
call fcn.0045dec0
add esp, 4
test eax, eax
je 0x4679e2
mov ecx, dword [ebp - 0x110]
inc ebx
mov eax, dword [ebp - 0x10c]
add esi, 0x88
add eax, 0x64
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x10c], eax
mov ecx, dword [ecx + 0x3c]
cmp ebx, ecx
jl 0x4675a1
mov esi, dword [ebp - 0x11c]
mov eax, dword [0x67c358]
lea ebx, [edi*8]
sub ebx, edi
mov dword [ebp - 0x150], 0
shl ebx, 2
push ebx
inc dword [eax + 0x314]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x12c], 0
call eax
mov ecx, dword [0x67c358]
add esp, 4
shl edi, 4
mov dword [ebp - 0x154], eax
inc dword [ecx + 0x314]
mov ecx, dword [ecx + 0xc0]
push edi
call ecx
mov ecx, dword [0x67c358]
lea esi, [esi + esi*2]
add esp, 4
shl esi, 3
mov dword [ebp - 0x130], eax
inc dword [ecx + 0x314]
mov ecx, dword [ecx + 0xc0]
push esi
call ecx
add esp, 4
mov dword [ebp - 0x124], eax
push ebx
push 0
push dword [ebp - 0x154]
call fcn.00522010
add esp, 0xc
push edi
push 0
push dword [ebp - 0x130]
call fcn.00522010
add esp, 0xc
push esi
push 0
push dword [ebp - 0x124]
call fcn.00522010
mov edi, dword [ebp - 0x110]
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x140], edx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
jle 0x467a32
mov ebx, dword [ebp - 0x138]
xor esi, esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x148], ebx
cmp edx, ecx
jl 0x46775b
push 0x40c
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui.h
push str.i___Size
call fcn.00531ca7
add esp, 0xc
mov ecx, dword [edi + 0x44]
add ecx, esi
mov dword [ebp - 0x10c], 0
xor esi, esi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x134], esi
mov edx, dword [ecx + 0x30]
movzx eax, word [edx]
mov edi, eax
test ax, ax
je 0x4677be
mov ebx, esi
movzx eax, word [edx + 2]
test ax, ax
je 0x4677a6
add edx, 4
mov ecx, eax
movzx eax, di
inc ebx
sub ecx, eax
inc esi
add ebx, ecx
movzx edi, word [edx]
test di, di
jne 0x467787
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x10c], ebx
mov ebx, dword [ebp - 0x148]
mov dword [ebp - 0x134], esi
mov edx, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x124]
mov dword [ebx + 0x84], esi
lea eax, [edx + edx*2]
add edx, esi
lea eax, [edi + eax*8]
mov dword [ebp - 0x12c], edx
xor edi, edi
mov dword [ebx + 0x80], eax
test esi, esi
jle 0x46786d
xor eax, eax
mov dword [ebp - 0x13c], eax
nop word [eax + eax]
mov edx, dword [ecx + 0x30]
mov esi, dword [ebx + 0x80]
mov ebx, dword [ebp - 0x154]
add esi, eax
mov eax, dword [ecx + 0x10]
mov dword [esi], eax
movzx eax, word [edx + edi*4]
mov dword [esi + 4], eax
movzx eax, word [edx + edi*4]
movzx ecx, word [edx + edi*4 + 2]
inc edi
mov edx, dword [ebp - 0x150]
sub ecx, eax
inc ecx
mov dword [esi + 0xc], ecx
lea eax, [edx*8]
sub eax, edx
add edx, ecx
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x150], edx
lea eax, [ebx + eax*4]
mov ebx, dword [ebp - 0x148]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x13c]
add eax, 0x18
mov dword [ebp - 0x13c], eax
cmp edi, dword [ebp - 0x134]
jl 0x467800
mov edx, dword [ebp - 0x14c]
mov eax, edx
mov ecx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x10c]
add edx, edi
shl eax, 4
add ecx, eax
mov dword [ebx + 0x7c], edi
mov eax, dword [ebp - 0x144]
mov dword [ebx + 0x78], ecx
mov dword [ebp - 0x14c], edx
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x134], eax
cmp eax, 8
jbe 0x4678c5
push 0xd93
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoader_stb_truetype.h
push str.h_oversample___8
call fcn.00531ca7
mov ecx, dword [ebx + 0x78]
add esp, 0xc
cmp esi, 8
jbe 0x4678e4
push 0xd94
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoader_stb_truetype.h
push str.v_oversample___8
call fcn.00531ca7
mov ecx, dword [ebx + 0x78]
add esp, 0xc
cmp dword [ebp - 0x134], 8
mov edx, ebx
mov eax, dword [ebp - 0x118]
cmovbe eax, dword [ebp - 0x134]
cmp esi, 8
push ecx
push dword [ebx + 0x84]
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 0x120]
push dword [ebx + 0x80]
cmovbe eax, esi
mov dword [ebp - 0x160], eax
call fcn.00462f80
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x46794a
push 0x6a1
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui_draw.cpp
push str.n__font_glyphs_count
call fcn.00531ca7
add esp, 0xc
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebp - 0x178]
push esi
call fcn.0045d270
add esp, 4
test esi, esi
jle 0x467990
xor edx, edx
mov eax, dword [ebx + 0x78]
cmp dword [eax + edx + 0xc], 0
je 0x467988
movzx ecx, word [eax + edx + 0xa]
mov edi, dword [ebp - 0x110]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x18], ecx
cmovge ecx, dword [edi + 0x18]
mov dword [edi + 0x18], ecx
add edx, 0x10
sub esi, 1
jne 0x467962
mov edi, dword [ebp - 0x110]
add ebx, 0x88
mov edx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x128]
inc edx
mov eax, dword [ebp - 0x160]
add esi, 0x64
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x120], eax
cmp edx, ecx
jge 0x467a2a
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x118], eax
jmp 0x467740
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x138]
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov eax, dword [0x67c358]
test ecx, ecx
je 0x467a0b
dec dword [eax + 0x314]
mov eax, dword [eax + 0xc4]
push ecx
call eax
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d116e
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x164]
jmp 0x467a37
mov ebx, 1
mov esi, dword [ebp - 0x114]
invalid
mov ch, 0xb4