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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x1004300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x138], esi
cmp dword [esi + 0x58], 0
jge 0x100222f2
test byte [esi + 4], 2
lea eax, [ebp - 0x198]
mov dword [ebp - 0x190], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x198], Ordinal_2
push eax
mov dword [ebp - 0x194], 0x1b00d9
je 0x100222e6
mov dword [ebp - 0x194], 0x20002
call fcn.10025740
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x12c], edx
test ecx, ecx
je 0x10022351
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022345
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [ebp - 0x12c]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1002236d
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022367
dec dword [eax + 0x374]
push ecx
call edx
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x13c], 0
lea eax, [edi + 8]
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x15c], edx
test ecx, ecx
jle 0x100223eb
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x100223e9
mov ecx, dword [0x10043a6c]
test ecx, ecx
je 0x100223ca
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov edx, dword [ebp - 0x15c]
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, 8
jmp 0x100223eb
mov eax, ecx
mov esi, dword [esi + 0x34]
mov dword [ebp - 0x168], esi
test esi, esi
jle 0x10022427
cmp esi, 8
mov ecx, esi
cmovl ecx, eax
test ecx, ecx
jle 0x10022427
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022413
inc dword [eax + 0x374]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [ebp - 0x158], eax
mov edi, eax
imul ecx, dword [ebp - 0x154], 0xc4
push ecx
push 0
push dword [ebp - 0x13c]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + esi*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x138]
add esp, 0xc
mov dword [ebp - 0x114], 0
cmp dword [eax + 0x4c], 0
jle 0x100225c3
mov esi, dword [ebp - 0x13c]
xor edx, edx
add esi, 0xa4
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x120], esi
nop dword [eax + eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x124], ecx
cmp dword [eax + 0x34], edx
jle 0x10022636
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x100224e5
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x100224cd
mov dword [esi - 4], edx
mov ecx, edx
jmp 0x100224d0
mov ecx, dword [esi - 4]
mov eax, dword [ebp - 0x138]
inc edx
cmp edx, dword [eax + 0x34]
jl 0x100224b0
cmp ecx, 0xffffffff
je 0x10022636
mov eax, dword [ebp - 0x124]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1001ec00
mov ecx, dword [ebp - 0x120]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x110], ecx
call fcn.10018c60
add esp, 4
test eax, eax
je 0x10022636
mov eax, dword [ebp - 0x110]
mov edx, 0x1003f9d0
mov esi, dword [ebp - 0x120]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x10022574
movzx eax, word [edx + 2]
test ax, ax
je 0x1002256e
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10022553
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x130]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x138]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x118]
inc ecx
add edx, 0x78
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], edx
cmp ecx, dword [eax + 0x4c]
jl 0x10022490
mov eax, dword [ebp - 0x154]
xor esi, esi
mov dword [ebp - 0x120], esi
test eax, eax
jle 0x100229c1
mov edx, dword [ebp - 0x13c]
add edx, 0xa8
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], edx
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x11c], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x110], eax
cmp ecx, eax
jle 0x10022670
test eax, eax
je 0x10022642
cdq
sub eax, edx
mov edx, dword [ebp - 0x10c]
sar eax, 1
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
jmp 0x1002264c
mov byte [ebp - 0x125], 0
jmp 0x10023ad0
mov dword [ebp - 0x124], 8
cmp dword [ebp - 0x124], ecx
mov eax, ecx
lea ecx, [edx + 4]
cmovg eax, dword [ebp - 0x124]
push eax
call fcn.100178e0
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x11c]
lea eax, [ecx*4]
mov dword [edx + 4], ecx
push eax
push 0
push dword [edx + 0xc]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x130], ecx
cmp dword [ecx], 0
jne 0x100226fb
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x110], eax
cmp esi, eax
jle 0x100226e4
test eax, eax
je 0x100226c6
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x110]
jmp 0x100226cb
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x130]
push eax
call fcn.100178e0
mov ecx, dword [ebp - 0x130]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x124], eax
movzx ecx, word [eax]
test cx, cx
je 0x100227fa
nop word [eax + eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x100227f4
movzx edi, cx
cmp edi, eax
ja 0x100227d9
nop dword [eax + eax]
mov eax, dword [ebp - 0x134]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x158]
sar esi, 5
mov dword [ebp - 0x110], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x100227c0
mov ecx, dword [ebp - 0x10c]
mov edx, edi
add ecx, 0xffffff58
call fcn.10019170
mov edx, dword [ebp - 0x10c]
test eax, eax
je 0x100227c6
inc dword [edx]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x158]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x158]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x134]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x120]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x124]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10022740
mov eax, dword [ebp - 0x124]
add eax, 4
mov dword [ebp - 0x124], eax
movzx ecx, word [eax]
test cx, cx
jne 0x10022720
mov edi, dword [ebp - 0x158]
add edx, 0xc4
sub dword [ebp - 0x114], 1
mov dword [ebp - 0x10c], edx
jne 0x100225f1
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x154]
add esi, 0xb8
mov dword [ebp - 0x134], eax
nop dword [eax + eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x100228a1
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022847
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call dword [ebp - 0x15c]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x110], eax
test edx, edx
je 0x1002289b
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x1002288b
mov eax, dword [0x10043a6c]
test eax, eax
je 0x1002288b
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x12c]
mov eax, dword [ebp - 0x110]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x114], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x160], eax
cmp edx, eax
jae 0x1002296d
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov eax, dword [edx]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x1002294f
xor edx, edx
mov edi, 1
mov dword [ebp - 0x130], edx
nop
test edi, eax
je 0x1002293b
mov eax, dword [esi + 4]
and ecx, 0xffffffe0
add ecx, edx
mov dword [ebp - 0x110], ecx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x1002291b
inc ecx
test eax, eax
je 0x10022907
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x1002290c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100178e0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x110]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
inc edx
rol edi, 1
mov dword [ebp - 0x130], edx
cmp edx, 0x20
jl 0x100228e0
mov edx, dword [ebp - 0x114]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], ecx
cmp edx, dword [ebp - 0x160]
jb 0x100228c6
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x100229a2
mov eax, dword [0x10043a6c]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x10022991
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x12c]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x134], 1
jne 0x10022830
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x120]
cmp dword [ebp - 0x168], 0
jle 0x10022a2f
mov esi, dword [ebp - 0x168]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x10022a15
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022a03
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x130]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x130], eax
sub esi, 1
jne 0x100229e0
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x120]
test edi, edi
je 0x10022a56
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022a42
dec dword [eax + 0x374]
push edi
call dword [ebp - 0x12c]
add esp, 4
mov dword [ebp - 0x158], 0
xor edi, edi
mov dword [ebp - 0x14c], 0
push esi
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x130], edi
call fcn.100255e0
test esi, esi
jle 0x10022aca
cmp esi, 8
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x10022aca
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022aac
inc dword [eax + 0x374]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call dword [ebp - 0x15c]
add esp, 4
mov dword [ebp - 0x130], eax
mov edi, eax
mov ecx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x148]
shl ecx, 4
push ecx
push 0
push eax
mov dword [ebp - 0x124], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x154]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x120], eax
add esp, 0xc
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x168], eax
test ecx, ecx
jle 0x10022f20
mov edi, dword [ebp - 0x13c]
add edi, 0x98
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x110], ecx
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10022f00
mov edx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x130]
shl eax, 4
add eax, dword [ebp - 0x124]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [ebp - 0x120], esi
add edx, esi
mov dword [ebp - 0x168], edx
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x138]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x114]
mov dword [ebp - 0x134], edx
mov eax, dword [edx + 0x10]
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x1003fd9c]
jbe 0x10022c24
mov esi, dword [ebp - 0x118]
mov eax, pe_nt_image_headers32
mov edi, dword [edi - 0x7c]
cwde
mov esi, dword [esi - 0x94]
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, pe_nt_image_headers32
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov edi, dword [ebp - 0x118]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x10022c4a
mov edx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x100403e0]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x140], eax
xor eax, eax
mov dword [ebp - 0x164], eax
movss dword [ebp - 0x11c], xmm1
cmp dword [edi + 0x20], eax
jle 0x10022ef4
mov dword [ebp - 0x160], eax
nop
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.10019170
mov ecx, dword [ebp - 0x134]
mov edx, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x17c], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x16c], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x174]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x118]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [ebp - 0x170], xmm0
call fcn.10019590
add esp, 0x10
test eax, eax
jne 0x10022d1c
xor esi, esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x170], esi
jmp 0x10022e5a
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x118]
mulss xmm0, dword [ebp - 0x16c]
addss xmm0, dword [0x1003fd9c]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x150], xmm0
fld qword [ebp - 0x150]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x150]
movsd xmm0, qword [ebp - 0x150]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x174]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x170]
cvttss2si esi, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x150], xmm0
fld qword [ebp - 0x150]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x150]
movsd xmm0, qword [ebp - 0x150]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x178]
mov dword [ebp - 0x118], eax
mulss xmm0, dword [ebp - 0x16c]
addss xmm0, dword [0x1003fd9c]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x150], xmm0
fld qword [ebp - 0x150]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x150]
movsd xmm0, qword [ebp - 0x150]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x17c]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x170]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [ebp - 0x16c], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x150], xmm0
fld qword [ebp - 0x150]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x150]
movsd xmm0, qword [ebp - 0x150]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x140]
movzx edx, ax
mov eax, dword [ebp - 0x134]
mov ecx, edx
sub ecx, esi
movss xmm1, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x160]
dec cx
dec dx
add cx, word [eax + 0x14]
add cx, word [ebp - 0x16c]
mov eax, dword [edi - 4]
mov word [eax + esi + 4], cx
mov eax, dword [ebp - 0x134]
mov cx, word [eax + 0x18]
sub cx, word [ebp - 0x118]
mov eax, dword [edi - 4]
add cx, dx
add cx, word [ebp - 0x170]
mov edx, dword [ebp - 0x10c]
mov word [eax + esi + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [eax + esi + 6]
movzx eax, word [eax + esi + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x164]
inc eax
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], eax
add edx, ecx
mov dword [ebp - 0x10c], edx
cmp eax, dword [edi + 0x20]
jl 0x10022c80
jmp 0x10022efa
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x120]
add dword [ebp - 0x114], 0x78
add edi, 0xc4
sub dword [ebp - 0x110], 1
mov dword [ebp - 0x118], edi
jne 0x10022b45
mov edi, dword [ebp - 0x138]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test eax, eax
jg 0x10022f80
movd xmm0, edx
cvtdq2ps xmm0, xmm0
call fcn.10001000
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1003ff6c]
jb 0x10022f5c
mov eax, 0x1000
jmp 0x10022f80
comiss xmm0, dword [0x1003ff68]
jb 0x10022f6c
mov eax, 0x800
jmp 0x10022f80
comiss xmm0, dword [0x1003ff58]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x1a8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x110], eax
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10022fb7
inc dword [eax + 0x374]
push 0x30
call dword [ebp - 0x15c]
mov ecx, dword [0x10043a6c]
mov esi, eax
mov eax, dword [ebp - 0x110]
add esp, 4
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x140], eax
test ecx, ecx
je 0x10022fec
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [ebp - 0x15c]
add esp, 4
test esi, esi
je 0x10023077
test eax, eax
je 0x10023065
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x198], edx
mov edx, dword [ebp - 0x140]
push edx
push eax
mov dword [ebp - 0x180], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x194], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x18c], 1
mov dword [ebp - 0x188], 1
mov dword [ebp - 0x190], 0
call fcn.10017e30
add esp, 0xc
jmp 0x100230a1
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023074
dec dword [eax + 0x374]
push esi
jmp 0x1002308c
test eax, eax
je 0x10023095
mov ecx, dword [0x10043a6c]
test ecx, ecx
je 0x1002308b
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x12c]
add esp, 4
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x10c], eax
push dword [edi + 0x40]
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x148], 0
call fcn.100255e0
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x110], eax
shl eax, 4
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x40], esi
jle 0x10023124
mov edx, dword [ebp - 0x148]
xor ecx, ecx
add edx, 6
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x10023100
push dword [ebp - 0x150]
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10c]
call fcn.100182e0
mov eax, dword [ebp - 0x150]
add esp, 4
test eax, eax
jle 0x1002319a
mov edx, dword [ebp - 0x148]
xor esi, esi
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10023189
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x110]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x110], eax
jne 0x10023153
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x100231be
mov ecx, dword [0x10043a6c]
test ecx, ecx
je 0x100231b4
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x12c]
add esp, 4
mov esi, dword [ebp - 0x154]
test esi, esi
jle 0x10023259
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x154]
add esi, 0xa8
mov dword [ebp - 0x11c], eax
mov eax, dword [esi]
test eax, eax
je 0x10023244
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 0x10c]
push eax
call fcn.100182e0
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x110], ecx
cmp dword [esi], ecx
jle 0x10023244
xor edx, edx
nop word [eax + eax]
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x10023236
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x110]
inc ecx
add edx, 0x10
mov dword [ebp - 0x110], ecx
cmp ecx, dword [esi]
jl 0x10023210
add esi, 0xc4
sub dword [ebp - 0x11c], 1
jne 0x100231e4
mov esi, dword [ebp - 0x154]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10023287
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x1003fe64]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x10043a6c]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x100232cb
inc dword [eax + 0x374]
push ecx
call dword [ebp - 0x15c]
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [ebp - 0x184], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x19c], eax
test esi, esi
jle 0x100234bc
mov ecx, dword [ebp - 0x13c]
xor eax, eax
mov dword [ebp - 0x160], eax
mov edx, esi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x164], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x10023490
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x1a8]
call fcn.1001e750
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x1003fe64]
movss dword [ebp - 0x140], xmm1
lahf
test ah, 0x44
jnp 0x10023474
xor esi, esi
nop
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10040390]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1003a0b0
movss xmm1, dword [ebp - 0x140]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x108], dl
inc esi
cmp esi, 0x100
jb 0x10023370
mov ecx, dword [ebp - 0x10c]
xor eax, eax
mov dword [ebp - 0x114], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1002347a
lea ecx, [edx + 4]
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x11c], ecx
cmp dword [ecx + 8], 0
je 0x10023458
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [ebp - 0x110], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x10023446
mov eax, dword [ebp - 0x110]
xor ecx, ecx
test esi, esi
je 0x10023439
nop dword [eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x108]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10023420
mov eax, dword [ebp - 0x110]
dec edi
add edx, eax
test edi, edi
jg 0x10023417
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp - 0x138]
inc eax
add ecx, 0x10
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ecx
cmp eax, dword [edx + 0xa8]
jl 0x100233e7
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp - 0x164]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x164], edx
jne 0x10023321
mov esi, dword [ebp - 0x1a4]
jmp 0x100234c2
mov esi, dword [ebp - 0x10c]
cmp dword [ebp - 0x180], 0
je 0x100234da
mov eax, dword [0x10043a6c]
test eax, eax
je 0x100234da
dec dword [eax + 0x374]
push dword [ebp - 0x180]
call dword [ebp - 0x12c]
add esp, 4
test esi, esi
je 0x100234fc
mov eax, dword [0x10043a6c]
test eax, eax
je 0x100234fc
dec dword [eax + 0x374]
push esi
mov esi, dword [ebp - 0x12c]
call esi
mov ecx, dword [ebp - 0x124]
add esp, 4
test ecx, ecx
je 0x10023531
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023521
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x154]
test eax, eax
jle 0x10023a7a
mov edx, dword [ebp - 0x13c]
xor ecx, ecx
movss xmm4, dword [0x1003fe24]
add edx, 4
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x164], eax
jmp 0x10023576
mov edi, dword [ebp - 0x138]
cmp dword [edx + 0xa4], 0
je 0x100239f1
mov eax, dword [edi + 0x54]
mov edi, dword [edx + 0x18]
add eax, ecx
mov esi, dword [edx]
mov dword [ebp - 0x160], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
mov dword [ebp - 0x114], eax
mov eax, pe_nt_image_headers32
cwde
movsx ecx, cx
imul ecx, eax
mov eax, pe_nt_image_headers32
cwde
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov edi, dword [ebp - 0x160]
movsx edx, dx
mov esi, dword [ebp - 0x114]
add cx, ax
mov dword [ebp - 0x174], edx
movss xmm1, dword [edi + 0x10]
movsx eax, cx
mov dword [ebp - 0x140], eax
sub eax, edx
cmp byte [edi + 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x178], xmm1
jne 0x100236b0
mov ecx, esi
call fcn.10023f80
movd xmm1, dword [ebp - 0x140]
xorps xmm4, xmm4
mov eax, dword [edi + 0x10]
cvtdq2ps xmm1, xmm1
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 0x138]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], ecx
comiss xmm1, xmm4
mulss xmm1, dword [ebp - 0x178]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [ebp - 0x174]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm2, eax
xor eax, eax
comiss xmm1, xmm4
mulss xmm1, dword [ebp - 0x178]
seta al
movss xmm4, dword [0x1003fe24]
cvtdq2ps xmm2, xmm2
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x4c], xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x50], xmm0
jmp 0x100236bb
movss xmm2, dword [esi + 0x4c]
mov ecx, dword [ebp - 0x138]
inc word [esi + 0x40]
addss xmm2, xmm4
mov edx, dword [ebp - 0x120]
movss xmm3, dword [edi + 0x28]
movss dword [ebp - 0x148], xmm3
mov dword [ebp - 0x118], 0
cmp dword [edx + 0xa4], 0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x2c]
movss dword [ebp - 0x170], xmm0
jle 0x100239eb
mov dword [ebp - 0x134], 0
nop
mov eax, dword [edx + 0xbc]
mov esi, dword [ebp - 0x118]
movss xmm0, dword [edi + 0x34]
movss dword [ebp - 0x11c], xmm0
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x178], eax
mov eax, dword [edx + 0x94]
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x140], eax
movss xmm1, dword [eax + edx + 0x10]
comiss xmm0, xmm1
ja 0x10023760
movss xmm0, dword [edi + 0x38]
minss xmm0, xmm1
movss dword [ebp - 0x11c], xmm0
mov esi, dword [ebp - 0x114]
ucomiss xmm1, xmm0
movss dword [ebp - 0x110], xmm3
lahf
test ah, 0x44
jnp 0x1002379c
cmp byte [edi + 0x1c], 0
subss xmm0, xmm1
mulss xmm0, xmm4
je 0x10023790
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [ebp - 0x110], xmm0
movd xmm0, dword [ecx + 0x1c]
movss xmm1, dword [0x1003fe64]
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [ecx + 0x20]
mov ecx, dword [ebp - 0x140]
cvtdq2ps xmm0, xmm0
movzx eax, word [ecx + edx]
divss xmm1, xmm0
movss xmm0, dword [ecx + edx + 8]
movss dword [ebp - 0x140], xmm0
movss xmm0, dword [ecx + edx + 0xc]
movss dword [ebp - 0x174], xmm0
movss xmm0, dword [ecx + edx + 0x14]
movss dword [ebp - 0x17c], xmm0
movss xmm0, dword [ecx + edx + 0x18]
movss dword [ebp - 0x16c], xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x168], xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x10c], xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 6]
lea ecx, [esi + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x1ac], xmm0
movd xmm0, eax
mov eax, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
inc eax
push eax
mulss xmm0, xmm1
movss dword [ebp - 0x1b0], xmm0
call fcn.10025690
mov eax, dword [esi + 0x20]
xorps xmm6, xmm6
movss xmm0, dword [ebp - 0x140]
mov edi, dword [esi + 0x28]
addss xmm0, xmm6
movss xmm4, dword [0x1003fe24]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x178]
mov word [edi + edx*8 - 0x28], ax
addss xmm0, dword [ebp - 0x110]
movss dword [edi + edx*8 - 0x20], xmm0
movss xmm0, dword [ebp - 0x174]
addss xmm0, xmm6
addss xmm0, dword [ebp - 0x170]
movss dword [edi + edx*8 - 0x1c], xmm0
movss xmm0, dword [ebp - 0x17c]
addss xmm0, xmm6
addss xmm0, dword [ebp - 0x110]
movss dword [edi + edx*8 - 0x18], xmm0
movss xmm0, dword [ebp - 0x16c]
addss xmm0, xmm6
addss xmm0, dword [ebp - 0x170]
movss dword [edi + edx*8 - 0x14], xmm0
movss xmm0, dword [ebp - 0x168]
movss dword [edi + edx*8 - 0x10], xmm0
movss xmm0, dword [ebp - 0x10c]
movss dword [edi + edx*8 - 0xc], xmm0
movss xmm0, dword [ebp - 0x1ac]
movss dword [edi + edx*8 - 8], xmm0
movss xmm0, dword [ebp - 0x1b0]
movss dword [edi + edx*8 - 4], xmm0
mov eax, dword [esi + 0x3c]
movss xmm0, dword [ebp - 0x11c]
addss xmm0, dword [eax + 0x20]
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [esi + 0x3c]
cmp byte [eax + 0x1c], 0
je 0x1002395c
addss xmm0, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [esi + 0x38]
mov byte [esi + 0x46], 1
movss xmm1, dword [edi + edx*8 - 8]
subss xmm1, dword [edi + edx*8 - 0x10]
movd xmm0, dword [eax + 0x1c]
cvtdq2ps xmm0, xmm0
add dword [ebp - 0x134], 0x1c
movss xmm3, dword [ebp - 0x148]
mulss xmm1, xmm0
movd xmm0, dword [eax + 0x20]
cvtdq2ps xmm0, xmm0
addss xmm1, dword [0x1003fe90]
cvttss2si ecx, xmm1
movss xmm1, dword [edi + edx*8 - 4]
subss xmm1, dword [edi + edx*8 - 0xc]
mov edx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x160]
mulss xmm1, xmm0
addss xmm1, dword [0x1003fe90]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
add dword [esi + 0x54], ecx
mov ecx, dword [ebp - 0x138]
cmp eax, dword [edx + 0xa4]
jl 0x10023710
mov ecx, dword [ebp - 0x15c]
add edx, 0xc4
add ecx, 0x78
sub dword [ebp - 0x164], 1
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x15c], ecx
jne 0x10023570
mov esi, dword [ebp - 0x13c]
add esi, 0xb4
nop
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10023a44
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023a36
dec dword [eax + 0x374]
mov edi, dword [ebp - 0x12c]
push ecx
call edi
add esp, 4
jmp 0x10023a4a
mov edi, dword [ebp - 0x12c]
mov ecx, dword [esi]
test ecx, ecx
je 0x10023a65
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023a5f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
add esi, 0xc4
sub dword [ebp - 0x154], 1
jne 0x10023a20
mov esi, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x138]
call fcn.10023b30
mov ecx, dword [ebp - 0x130]
mov byte [ebp - 0x125], 1
test ecx, ecx
je 0x10023aab
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023aa5
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov ecx, dword [ebp - 0x124]
test ecx, ecx
je 0x10023aca
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023ac4
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x158]
test edi, edi
je 0x10023af1
mov eax, dword [0x10043a6c]
test eax, eax
je 0x10023ae3
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x12c]
push edi
call esi
add esp, 4
jmp 0x10023af7
mov esi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x10023b17
mov ecx, dword [0x10043a6c]
test ecx, ecx
je 0x10023b11
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x125]
xor ecx, ebp
pop edi
pop esi
call fcn.10038f5a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret