Function at 0x402020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4c
mov eax, dword [0x46b040]
xor eax, esp
mov dword [esp + 0xf48], eax
push ebx
mov ebx, ecx
xorps xmm0, xmm0
push esi
push edi
mov dword [esp + 0x28], ebx
comiss xmm0, dword [ebx + 0x1c]
jae 0x402997
comiss xmm0, dword [ebx + 0x20]
jae 0x402997
mov esi, dword [0x52d99c]
test esi, esi
je 0x402069
mov esi, dword [esi + 0x78]
jmp 0x40206b
xor esi, esi
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x38]
mov edi, dword [esi + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x4020a0
mov eax, dword [eax]
cmp eax, dword [ebx + 0xc]
jge 0x402114
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea edx, [esi + 0xc]
mov dword [edx], 0
jmp 0x4020a7
mov dword [esp + 0xc], eax
lea edx, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0xc]
add eax, 0x1388
push edx
push 0
mov dword [esp + 0xf58], 0
lea edx, [esp + 0xf44]
mov dword [ecx], eax
lea eax, [eax + eax*4]
mov ecx, dword [esi]
shl eax, 2
mov dword [esp + 0xf48], 2
mov dword [esp + 0xf44], eax
mov dword [esp + 0xf4c], 1
mov dword [esp + 0xf50], 0x10000
mov dword [esp + 0xf54], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x402997
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x402130
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebx + 8]
jge 0x40218f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], 0
mov eax, dword [ebx + 8]
lea edx, [esi + 0x10]
mov ecx, dword [esi]
add eax, 0x2710
push edx
mov dword [esi + 0x3c], eax
lea edx, [esp + 0xf40]
add eax, eax
mov dword [esp + 0xf44], 2
xorps xmm0, xmm0
mov dword [esp + 0xf40], eax
push 0
movlpd qword [esp + 0xf54], xmm0
mov dword [esp + 0xf4c], 2
mov dword [esp + 0xf50], 0x10000
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x402997
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
push 0
push 4
push 0
push dword [esi + 0xc]
push edi
call dword [eax + 0x38]
test eax, eax
jne 0x402997
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
push 0
push 4
push 0
push dword [esi + 0x10]
push edi
call dword [eax + 0x38]
test eax, eax
jne 0x402997
cmp dword [ebx + 4], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jle 0x40223e
xor edi, edi
nop
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + edi*4]
mov eax, dword [esi + 0x18]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push dword [esi + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, eax
push eax
push dword [esi + 0x14]
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
lea edx, [edx + eax*2]
mov dword [esp + 0x10], edx
cmp edi, dword [ebx + 4]
jl 0x4021e0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
push 0
push dword [esi + 0xc]
push edi
call dword [eax + 0x3c]
mov eax, dword [edi]
push 0
push dword [esi + 0x10]
push edi
call dword [eax + 0x3c]
mov eax, dword [edi]
lea ecx, [esp + 0xf3c]
push ecx
push 0
push 4
push 0
push dword [esi + 0x1c]
push edi
call dword [eax + 0x38]
test eax, eax
jne 0x402997
movss xmm6, dword [ebx + 0x14]
movss xmm2, dword [0x465ae0]
movaps xmm3, xmm6
addss xmm3, dword [ebx + 0x1c]
movss xmm5, dword [ebx + 0x18]
movaps xmm0, xmm2
mov eax, dword [esp + 0xf3c]
movaps xmm4, xmm5
addss xmm4, dword [ebx + 0x20]
push 0
movaps xmm1, xmm3
subss xmm1, xmm6
divss xmm0, xmm1
movss dword [eax], xmm0
movaps xmm0, xmm5
mov eax, dword [esp + 0xf40]
subss xmm0, xmm4
mov dword [eax + 4], 0
mov eax, dword [esp + 0xf40]
divss xmm2, xmm0
mov dword [eax + 8], 0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x10], 0
mov eax, dword [esp + 0xf40]
movaps xmm0, xmm3
movss dword [eax + 0x14], xmm2
addss xmm0, xmm6
mov eax, dword [esp + 0xf40]
subss xmm6, xmm3
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0xf40]
divss xmm0, xmm6
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x20], 0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x24], 0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x28], 0x3f000000
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x2c], 0
mov eax, dword [esp + 0xf40]
movss dword [eax + 0x30], xmm0
movaps xmm0, xmm4
addss xmm0, xmm5
mov eax, dword [esp + 0xf40]
subss xmm4, xmm5
divss xmm0, xmm4
movss dword [eax + 0x34], xmm0
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x38], 0x3f000000
mov eax, dword [esp + 0xf40]
mov dword [eax + 0x3c], 0x3f800000
push dword [esi + 0x1c]
mov eax, dword [edi]
push edi
call dword [eax + 0x3c]
push 0xee8
lea eax, [esp + 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0x10
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push edi
call dword [eax + 0x180]
mov eax, dword [edi]
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x50]
push ecx
push edi
call dword [eax + 0x17c]
mov eax, dword [edi]
lea ecx, [esp + 0x2d0]
push ecx
push edi
call dword [eax + 0x178]
mov eax, dword [edi]
lea ecx, [esp + 0x2e8]
push ecx
lea ecx, [esp + 0x2dc]
push ecx
lea ecx, [esp + 0x2dc]
push ecx
push edi
call dword [eax + 0x16c]
mov eax, dword [edi]
lea ecx, [esp + 0x2ec]
push ecx
lea ecx, [esp + 0x2f4]
push ecx
push edi
call dword [eax + 0x170]
mov eax, dword [edi]
lea ecx, [esp + 0x2f4]
push ecx
push 1
push 0
push edi
call dword [eax + 0x124]
mov eax, dword [edi]
lea ecx, [esp + 0x2f8]
push ecx
push 1
push 0
push edi
call dword [eax + 0x12c]
lea ecx, [esp + 0x308]
mov dword [esp + 0x310], 0x100
push ecx
lea ecx, [esp + 0x318]
mov dword [esp + 0x310], 0x100
push ecx
mov dword [esp + 0x310], 0x100
lea ecx, [esp + 0x304]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x128]
mov eax, dword [edi]
lea ecx, [esp + 0x30c]
push ecx
lea ecx, [esp + 0x718]
push ecx
lea ecx, [esp + 0x308]
push ecx
push edi
call dword [eax + 0x130]
mov eax, dword [edi]
lea ecx, [esp + 0xf20]
push ecx
push 1
push 0
push edi
call dword [eax + 0x120]
mov eax, dword [edi]
lea ecx, [esp + 0x310]
push ecx
lea ecx, [esp + 0xb18]
push ecx
lea ecx, [esp + 0x30c]
push ecx
push edi
call dword [eax + 0x148]
mov eax, dword [edi]
lea ecx, [esp + 0xf14]
push ecx
push edi
call dword [eax + 0x14c]
mov eax, dword [edi]
lea ecx, [esp + 0xf24]
push ecx
lea ecx, [esp + 0xf34]
push ecx
lea ecx, [esp + 0xf20]
push ecx
push edi
call dword [eax + 0x140]
mov eax, dword [edi]
lea ecx, [esp + 0xf2c]
push ecx
lea ecx, [esp + 0xf2c]
push ecx
lea ecx, [esp + 0xf24]
push ecx
push 1
push 0
push edi
call dword [eax + 0x13c]
mov eax, dword [edi]
lea ecx, [esp + 0xf34]
push ecx
push edi
call dword [eax + 0x138]
mov edx, edi
mov ecx, ebx
call fcn.00401eb0
movss xmm0, dword [ebx + 0x14]
xor ecx, ecx
movss xmm4, dword [ebx + 0x18]
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], esi
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x10], xmm4
mov dword [esp + 0x18], ecx
cmp dword [ebx + 4], ecx
jle 0x402719
nop dword [eax + eax]
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
test ecx, ecx
jle 0x4026f5
mov dword [esp + 0x1c], ebx
nop word [eax + eax]
test ebx, ebx
js 0x4025d8
cmp ebx, ecx
jl 0x402600
push 0x6fc
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm0, dword [esp + 0x30]
add esp, 0xc
movss xmm4, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 8]
add esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x402632
cmp eax, 0xffffffff
jne 0x402623
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.00401eb0
jmp 0x4026cd
push esi
push dword [esp + 0x24]
call eax
add esp, 8
jmp 0x4026cd
movss xmm3, dword [esi]
movss xmm2, dword [esi + 8]
subss xmm3, xmm0
movss xmm1, dword [esi + 4]
subss xmm2, xmm0
movss xmm0, dword [esi + 0xc]
subss xmm1, xmm4
subss xmm0, xmm4
comiss xmm3, xmm2
jae 0x4026d3
comiss xmm1, xmm0
jae 0x4026d3
cvttss2si eax, xmm3
lea ecx, [esp + 0xf3c]
push ecx
push 1
push edi
mov dword [esp + 0xf48], eax
cvttss2si eax, xmm1
mov dword [esp + 0xf4c], eax
cvttss2si eax, xmm2
mov dword [esp + 0xf50], eax
cvttss2si eax, xmm0
mov dword [esp + 0xf54], eax
mov eax, dword [edi]
call dword [eax + 0xb4]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 1
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x20]
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x18]
push eax
push dword [esi + 0x1c]
push edi
call dword [ecx + 0x30]
movss xmm4, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc ebx
add dword [esp + 0x1c], 0x28
movss xmm0, dword [esp + 0x24]
mov ecx, dword [eax]
cmp ebx, ecx
jl 0x4025d0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
inc ecx
add edx, dword [eax + 0xc]
add esi, dword [eax + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 4]
jl 0x4025b0
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push dword [esp + 0x4c]
push edi
call dword [eax + 0xb4]
mov eax, dword [edi]
lea ecx, [esp + 0x150]
push ecx
push dword [esp + 0x50]
push edi
call dword [eax + 0xb0]
push dword [esp + 0x2d0]
mov eax, dword [edi]
push edi
call dword [eax + 0xac]
mov ecx, dword [esp + 0x2d0]
test ecx, ecx
je 0x402761
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x2e8]
mov eax, dword [edi]
lea ecx, [esp + 0x2dc]
push ecx
push dword [esp + 0x2dc]
push edi
call dword [eax + 0x8c]
mov ecx, dword [esp + 0x2d4]
test ecx, ecx
je 0x402791
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x2ec]
mov eax, dword [edi]
push dword [esp + 0x2f4]
push edi
call dword [eax + 0x90]
mov ecx, dword [esp + 0x2f0]
test ecx, ecx
je 0x4027b9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x2f4]
push ecx
push 1
push 0
push edi
call dword [eax + 0x20]
mov ecx, dword [esp + 0x2f4]
test ecx, ecx
je 0x4027dc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x2f8]
push ecx
push 1
push 0
push edi
call dword [eax + 0x28]
mov ecx, dword [esp + 0x2f8]
test ecx, ecx
je 0x4027ff
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x308]
mov eax, dword [edi]
lea ecx, [esp + 0x318]
push ecx
push dword [esp + 0x304]
push edi
call dword [eax + 0x24]
mov ecx, dword [esp + 0x2fc]
test ecx, ecx
je 0x40282c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x308]
xor esi, esi
test eax, eax
je 0x40285d
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x314]
test ecx, ecx
je 0x402858
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x308]
inc esi
cmp esi, eax
jb 0x402840
push dword [esp + 0x30c]
mov eax, dword [edi]
lea ecx, [esp + 0x718]
push ecx
push dword [esp + 0x308]
push edi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x300]
test ecx, ecx
je 0x40288a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [esp + 0xf20]
push ecx
push 1
push 0
push edi
call dword [eax + 0x1c]
mov ecx, dword [esp + 0xf20]
test ecx, ecx
je 0x4028ad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x310]
mov eax, dword [edi]
lea ecx, [esp + 0xb18]
push ecx
push dword [esp + 0x30c]
push edi
call dword [eax + 0x5c]
mov ecx, dword [esp + 0x304]
test ecx, ecx
je 0x4028da
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x30c]
xor esi, esi
test eax, eax
je 0x40290d
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0x714]
test ecx, ecx
je 0x402908
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x30c]
inc esi
cmp esi, eax
jb 0x4028f0
push dword [esp + 0xf14]
mov eax, dword [edi]
push edi
call dword [eax + 0x60]
push dword [esp + 0xf24]
mov eax, dword [edi]
push dword [esp + 0xf34]
push dword [esp + 0xf20]
push edi
call dword [eax + 0x4c]
mov ecx, dword [esp + 0xf18]
test ecx, ecx
je 0x402946
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [esp + 0xf2c]
push ecx
lea ecx, [esp + 0xf2c]
push ecx
lea ecx, [esp + 0xf24]
push ecx
push 1
push 0
push edi
call dword [eax + 0x48]
mov ecx, dword [esp + 0xf1c]
test ecx, ecx
je 0x402979
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0xf34]
mov eax, dword [edi]
push edi
call dword [eax + 0x44]
mov ecx, dword [esp + 0xf34]
test ecx, ecx
je 0x402997
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0xf54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455723
mov esp, ebp
pop ebp
ret