Function at 0x100145d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x1003200c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x50], eax
xor esi, esi
mov eax, dword [ecx + 4]
xor ebx, ebx
push edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
call fcn.10014420
mov edi, eax
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
test edi, edi
js 0x1001504b
mov edx, dword [esp + 0x38]
mov eax, pe_nt_image_headers32
cwde
movzx ecx, byte [edi + edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + edx + 1]
add cx, ax
movzx eax, cx
mov dword [esp + 0x14], eax
test ax, ax
jle 0x10014ad8
cwde
lea esi, [edx + 0xa]
add edx, 0xa
mov byte [esp + 0x13], bl
add esi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x38]
lea ecx, [edi + eax*2]
add ecx, edx
mov dword [esp + 0x50], esi
lea edx, [eax + eax]
add ebx, 0xc
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
add eax, edx
add ecx, eax
mov eax, dword [0x10032718]
add ecx, edi
movzx edi, byte [edx + esi - 1]
add ebx, ecx
movzx ecx, byte [edx + esi - 2]
shl ecx, 8
inc ecx
add edi, ecx
mov dword [esp + 0x28], edi
lea ecx, [edx + edi]
test eax, eax
je 0x1001469e
inc dword [eax + 0x374]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x1001504b
xor dl, dl
mov dword [esp + 0x48], 0
test edi, edi
je 0x10014727
mov ecx, dword [esp + 0x14]
movsx eax, cx
lea ecx, [eax*8]
sub ecx, eax
mov al, byte [esp + 0x13]
add ecx, 3
lea ecx, [esi + ecx*4]
nop dword [eax]
mov dword [esp + 0x1c], ebx
test dl, dl
jne 0x10014717
mov al, byte [ebx]
mov byte [esp + 0x13], al
and al, 8
je 0x10014705
mov dl, byte [ebx + 1]
xor ebx, ebx
test al, al
mov al, byte [esp + 0x13]
setne bl
inc ebx
add ebx, dword [esp + 0x1c]
jmp 0x10014719
dec dl
mov byte [ecx], al
add ecx, 0xe
sub edi, 1
jne 0x100146f0
mov edi, dword [esp + 0x28]
xor edx, edx
test edi, edi
je 0x1001479f
mov eax, dword [esp + 0x14]
movsx ecx, ax
lea eax, [ecx*8]
sub eax, ecx
lea edi, [esi + eax*4]
mov esi, dword [esp + 0x28]
mov cl, byte [edi + 0xc]
and cl, 0x10
test byte [edi + 0xc], 2
mov byte [esp + 0x13], cl
je 0x1001476a
mov al, byte [ebx]
inc ebx
movzx ecx, al
mov eax, ecx
neg eax
cmp byte [esp + 0x13], 0
cmove ecx, eax
add edx, ecx
jmp 0x1001478c
test cl, cl
jne 0x1001478c
movzx ecx, byte [ebx]
mov eax, pe_nt_image_headers32
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [ebx + 1]
add cx, ax
movsx eax, cx
add edx, eax
add ebx, 2
mov word [edi], dx
add edi, 0xe
sub esi, 1
jne 0x10014744
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
xor edx, edx
test edi, edi
je 0x10014819
mov eax, dword [esp + 0x14]
movsx ecx, ax
lea eax, [ecx*8]
sub eax, ecx
lea edi, [eax*4 + 2]
add edi, esi
mov esi, dword [esp + 0x28]
mov cl, byte [edi + 0xa]
and cl, 0x20
test byte [edi + 0xa], 4
mov byte [esp + 0x13], cl
je 0x100147e8
mov al, byte [ebx]
inc ebx
movzx ecx, al
mov eax, ecx
neg eax
cmp byte [esp + 0x13], 0
cmove ecx, eax
add edx, ecx
jmp 0x1001480a
test cl, cl
jne 0x1001480a
movzx ecx, byte [ebx]
mov eax, pe_nt_image_headers32
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [ebx + 1]
add cx, ax
movsx eax, cx
add edx, eax
add ebx, 2
mov word [edi], dx
add edi, 0xe
sub esi, 1
jne 0x100147c2
mov esi, dword [esp + 0x20]
xor eax, eax
xor edx, edx
xor edi, edi
mov dword [esp + 0x4c], edx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x28], eax
jbe 0x10014a9b
mov eax, dword [esp + 0x14]
movsx ebx, ax
lea eax, [ebx*8]
sub eax, ebx
lea ebx, [esi + eax*4]
mov dword [esp + 0x1c], ebx
nop
mov al, byte [ebx + 0xc]
mov byte [esp + 0x13], al
movzx eax, word [ebx]
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x48], eax
jne 0x10014972
test eax, eax
je 0x100148b2
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x54]
push dword [esp + 0x44]
push edi
push ecx
push dword [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x40]
call fcn.10014500
mov edx, eax
add esp, 0x20
mov eax, dword [esp + 0x40]
movzx ecx, byte [esp + 0x13]
not ecx
and ecx, 1
mov dword [esp + 0x44], ecx
je 0x1001491b
test byte [ebx + 0x1a], 1
mov edi, dword [esp + 0x18]
movsx ecx, di
mov edi, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
movsx ecx, di
movsx edi, word [ebx + 0x10]
mov dword [esp + 0x4c], ecx
lea ecx, [ebx + 0xe]
mov dword [esp + 0x1c], ecx
movsx ecx, word [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], edi
jne 0x10014910
mov esi, dword [esp + 0x18]
movsx eax, si
mov esi, dword [esp + 0x14]
add ecx, eax
movsx eax, si
mov esi, dword [esp + 0x20]
add edi, eax
sar ecx, 1
sar edi, 1
jmp 0x10014929
mov ebx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x40], eax
jmp 0x10014931
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
movsx ecx, cx
movsx edi, di
mov dword [esp + 0x70], edi
mov dword [esp + 0x34], ecx
lea eax, [edx*8]
sub eax, edx
inc edx
mov word [esi + eax*2], cx
xor ecx, ecx
mov dword [esi + eax*2 + 4], ecx
mov byte [esi + eax*2 + 0xc], 1
mov word [esi + eax*2 + 2], di
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
inc ecx
shl eax, 8
add eax, ecx
add dword [esp + 0x50], 2
mov dword [esp + 0x48], eax
jmp 0x10014a79
test byte [esp + 0x13], 1
jne 0x100149f7
cmp dword [esp + 0x24], 0
je 0x100149d0
lea ecx, [edx*8]
sub ecx, edx
mov byte [esi + ecx*2 + 0xc], 3
mov esi, dword [esp + 0x18]
movsx eax, si
add eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
sar eax, 1
mov word [esi + ecx*2], ax
mov esi, dword [esp + 0x14]
movsx eax, si
add eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
sar eax, 1
inc edx
mov word [esi + ecx*2 + 2], ax
mov eax, dword [esp + 0x30]
mov word [esi + ecx*2 + 4], ax
mov eax, dword [esp + 0x2c]
mov word [esi + ecx*2 + 6], ax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
movsx ecx, di
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
movsx ecx, di
mov edi, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 1
jmp 0x10014a7d
mov eax, dword [esp + 0x18]
lea ebx, [edx*8]
movzx esi, ax
sub ebx, edx
mov eax, dword [esp + 0x14]
inc edx
movzx edi, ax
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
test esi, esi
movzx eax, ax
cmove eax, ecx
mov dword [esp + 0x14], edx
movzx edx, ax
test esi, esi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
movzx eax, ax
cmove eax, ecx
movzx ecx, ax
setne al
add al, 2
mov byte [esi + ebx*2 + 0xc], al
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov word [eax + ebx*2], si
mov esi, eax
mov word [esi + ebx*2 + 2], di
mov word [esi + ebx*2 + 4], dx
mov edx, dword [esp + 0x14]
mov word [esi + ebx*2 + 6], cx
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
inc eax
add ebx, 0xe
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x28]
jl 0x10014860
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x54]
push dword [esp + 0x44]
push edi
push ecx
push dword [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x40]
call fcn.10014500
mov ebx, eax
add esp, 0x20
mov eax, dword [esp + 0x54]
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10025af6
mov esp, ebp
pop ebp
ret
cmp ax, 0xffff
jne 0x1001505f
add edi, 0xa
xor ebx, ebx
add edi, edx
xor esi, esi
mov dword [esp + 0x20], esi
mov al, byte [edi + 2]
xorps xmm3, xmm3
movzx edx, byte [edi + 1]
movaps xmm0, xmmword [0x100307b0]
movss xmm5, dword [0x100306c8]
movss xmm4, dword [0x1003066c]
mov byte [esp + 0x13], al
mov al, byte [edi + 3]
add edi, 4
mov dword [esp + 0x70], 0
movss dword [esp + 0x24], xmm3
mov dword [esp + 0x4c], edx
mov byte [esp + 0x3f], al
movups xmmword [esp + 0x5c], xmm0
test dl, 2
je 0x10014bc4
lea ecx, [edi + 1]
mov dword [esp + 0x1c], ecx
test dl, 1
je 0x10014b9f
movzx ecx, byte [edi]
mov eax, pe_nt_image_headers32
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm0, eax
mov eax, pe_nt_image_headers32
cwde
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm0, xmm0
add cx, ax
add edi, 4
movsx eax, cx
movss dword [esp + 0x44], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x24], xmm0
jmp 0x10014bfc
movsx eax, byte [edi]
mov edi, ecx
movd xmm0, eax
movsx eax, byte [edi]
inc edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x44], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x24], xmm0
jmp 0x10014bfc
push 0x70b
push str.c:usersendlessdesktopimgui_directx_9_kiero_hook_masterimgui_directx_9_kiero_hook_2imguiimstb_truetype.h
push 0x100283cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm0, dword [esp + 0x74]
add esp, 0xc
movss xmm4, dword [0x1003066c]
movss xmm5, dword [0x100306c8]
mov edx, dword [esp + 0x4c]
movss dword [esp + 0x44], xmm0
xorps xmm2, xmm2
test dl, 8
je 0x10014c4e
movzx ecx, byte [edi]
mov eax, pe_nt_image_headers32
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
add edi, 2
movsx eax, cx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movaps xmm1, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x30], xmm0
jmp 0x10014db1
test dl, 0x40
je 0x10014cbe
movzx ecx, byte [edi]
mov edx, pe_nt_image_headers32
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm1, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm1, xmm1
add cx, ax
add edi, 4
movsx eax, cx
mulss xmm1, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x14], xmm1
mulss xmm0, xmm4
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x30], xmm0
jmp 0x10014db1
movaps xmm0, xmm5
movaps xmm1, xmm5
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x30], xmm0
test dl, dl
jns 0x10014da5
movzx ecx, byte [edi + 2]
lea esi, [edi + 1]
movsx ecx, cx
mov eax, pe_nt_image_headers32
cwde
imul ecx, eax
movzx eax, byte [edi + 3]
mov dl, byte [edi]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 4]
movsx ecx, cx
movd xmm2, eax
mov eax, pe_nt_image_headers32
cwde
imul ecx, eax
movzx eax, byte [edi + 5]
cvtdq2ps xmm2, xmm2
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 6]
movsx ecx, cx
mulss xmm2, xmm4
movd xmm0, eax
mov eax, pe_nt_image_headers32
cwde
imul ecx, eax
movzx eax, byte [edi + 7]
add edi, 8
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
movss dword [esp + 0x34], xmm2
mulss xmm0, xmm4
movzx ecx, dl
movsx ecx, cx
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x18], xmm0
movd xmm0, eax
mov eax, pe_nt_image_headers32
cwde
imul ecx, eax
movzx eax, byte [esi]
mov esi, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
mulss xmm0, xmm4
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x28], xmm0
mulss xmm1, xmm4
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x14], xmm1
jmp 0x10014dc9
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm1
addss xmm0, xmm2
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mulss xmm1, xmm1
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm0
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movzx edx, byte [esp + 0x13]
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x50]
cvtsd2ss xmm0, xmm0
push eax
movzx eax, byte [esp + 0x43]
shl edx, 8
add edx, eax
movss dword [esp + 0x4c], xmm0
call fcn.100165d0
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jle 0x10014ffb
movss xmm4, dword [esp + 0x28]
xor edx, edx
movss xmm5, dword [esp + 0x14]
mov esi, eax
movss xmm6, dword [esp + 0x44]
movss xmm7, dword [esp + 0x18]
nop dword [eax]
mov ecx, dword [esp + 0x70]
xorps xmm3, xmm3
xorps xmm2, xmm2
movsx eax, word [edx + ecx + 2]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx]
cvtsi2ss xmm2, eax
movaps xmm1, xmm3
mulss xmm3, xmm4
movaps xmm0, xmm2
mulss xmm1, xmm7
mulss xmm2, dword [esp + 0x34]
mulss xmm0, xmm5
addss xmm2, xmm3
xorps xmm3, xmm3
addss xmm1, xmm0
addss xmm2, dword [esp + 0x24]
addss xmm1, xmm6
mulss xmm2, dword [esp + 0x48]
mulss xmm1, dword [esp + 0x1c]
cvttss2si eax, xmm1
mov word [edx + ecx], ax
cvttss2si eax, xmm2
xorps xmm2, xmm2
mov word [edx + ecx + 2], ax
movsx eax, word [edx + ecx + 6]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx + 4]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm7
mulss xmm2, dword [esp + 0x34]
mulss xmm1, xmm5
addss xmm2, xmm3
addss xmm1, xmm0
addss xmm2, dword [esp + 0x24]
addss xmm1, xmm6
mulss xmm2, dword [esp + 0x48]
mulss xmm1, dword [esp + 0x1c]
cvttss2si eax, xmm1
mov word [edx + ecx + 4], ax
cvttss2si eax, xmm2
mov word [edx + ecx + 6], ax
add edx, 0xe
sub esi, 1
jne 0x10014e60
mov eax, dword [0x10032718]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x10014f41
inc dword [eax + 0x374]
mov ecx, dword [esp + 0x38]
add ecx, ebx
mov dword [esp + 0x48], ecx
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10015007
test ebx, ebx
jle 0x10014f86
lea ecx, [ebx*8]
sub ecx, ebx
add ecx, ecx
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x38]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
push dword [esp + 0x74]
lea eax, [ebx*8]
sub eax, ebx
mov ebx, dword [esp + 0x24]
lea eax, [ebx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test esi, esi
je 0x10014fd0
mov eax, dword [0x10032718]
test eax, eax
je 0x10014fc6
dec dword [eax + 0x374]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x70]
mov esi, ebx
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x10014fed
mov eax, dword [0x10032718]
test eax, eax
je 0x10014fed
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x4c]
add esp, 4
test byte [esp + 0x4c], 0x20
je 0x1001507c
jmp 0x10014aef
test esi, esi
je 0x10015028
mov eax, dword [0x10032718]
test eax, eax
je 0x1001501a
dec dword [eax + 0x374]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call ebx
add esp, 4
jmp 0x1001502e
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x1001504b
mov eax, dword [0x10032718]
test eax, eax
je 0x10015045
dec dword [eax + 0x374]
push ecx
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10025af6
mov esp, ebp
pop ebp
ret
test ax, ax
jns 0x1001507c
push 0x740
push str.c:usersendlessdesktopimgui_directx_9_kiero_hook_masterimgui_directx_9_kiero_hook_2imguiimstb_truetype.h
push 0x100283cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x74]
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.10025af6
mov esp, ebp
pop ebp
ret