Function at 0x508f40
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov esi, esp
mov dword [esi + 0x148], ebp
call 0x508f5c
pop eax
mov dword [esi + 0x14c], esp
mov dword [esi + 0x158], 0xffffffff
mov dword [esi + 0x154], 0x704190
mov edi, ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x114], eax
mov eax, dword fs:[0]
mov dword [esi + 0x150], eax
lea eax, [esi + 0x150]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x38], eax
cmp eax, edx
mov eax, dword [ecx + 0x10]
jne 0x509094
cmp eax, edx
jne 0x509094
cmp edx, 0x3fffffff
ja 0x50a47e
lea eax, [edx*4]
mov dword [esi + 0x28], eax
mul dword [esi + 0xc]
mov edx, dword [esi + 0xc]
jo 0x50a47e
mov ecx, eax
test eax, eax
mov dword [esi + 4], eax
je 0x50912f
test ecx, ecx
js 0x50a52c
mov eax, dword [0x919820]
test eax, eax
jne 0x509009
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x50a507
mov dword [0x919820], eax
mov ecx, dword [esi + 4]
push ecx
push 8
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [esi + 0xc]
test eax, eax
mov dword [esi + 0x10], eax
je 0x50a507
test edx, edx
je 0x50913e
mov eax, dword [edi]
mov ecx, edx
mov edx, dword [edi + 8]
mov edi, 4
mov dword [esi + 0x40], eax
xor eax, eax
nop word [eax + eax]
mov ebx, edi
inc eax
mov edi, ecx
mov ecx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0x34], ebx
nop dword [eax]
test ecx, ecx
je 0x50a3e7
cmp ecx, edx
ja 0x50a40a
cmp ecx, dword [esi + 4]
ja 0x50a426
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + ecx - 4]
mov eax, dword [esi + 0x10]
mov dword [eax + ecx - 4], ebx
add ecx, 4
dec edi
jne 0x509050
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add edi, dword [esi + 0x28]
cmp eax, ecx
jne 0x509040
mov edx, ecx
jmp 0x509d7d
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x38]
cmp eax, 0x40000000
jae 0x50a497
lea eax, [eax*4]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x34], eax
mul dword [esi + 0xc]
jo 0x50a497
test eax, eax
mov dword [esi + 0x3c], eax
je 0x509126
xor ebx, ebx
cmp eax, 0x20000000
setb dl
jae 0x50a533
mov bl, dl
lea eax, [eax*4]
shl ebx, 2
test eax, eax
mov dword [esi + 0x40], eax
js 0x50a544
je 0x509178
mov eax, dword [0x919820]
test eax, eax
jne 0x50910b
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x50a516
mov dword [0x919820], eax
push dword [esi + 0x40]
push 8
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [esi + 0xc]
test eax, eax
mov dword [esi + 0x60], eax
jne 0x509185
jmp 0x50a516
mov dword [esi + 0x60], 4
jmp 0x509185
mov dword [esi + 0x10], 1
test edx, edx
jne 0x509029
mov ecx, dword [esi + 4]
lea eax, [esi + 0x18]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
jmp 0x509dbe
mov eax, ebx
test eax, eax
mov dword [esi + 0x60], eax
je 0x50a516
mov eax, dword [esi + 0x58]
movq xmm1, qword [0x725628]
xor ebx, ebx
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
movd xmm0, eax
add eax, 0xffffffff
por xmm0, xmm1
mov dword [esi + 0xa4], eax
mov eax, 0
subsd xmm0, xmm1
adc eax, 0xffffffff
cvtsd2ss xmm2, xmm0
movd xmm0, ecx
mov dword [esi + 0xa0], eax
mov eax, dword [edi]
por xmm0, xmm1
subsd xmm0, xmm1
movss xmm1, dword [0x726374]
cvtsd2ss xmm0, xmm0
divss xmm2, xmm0
movss dword [esi + 0x9c], xmm0
movss xmm0, dword [0x7255e0]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x28], eax
maxss xmm0, xmm2
movss dword [esi + 0xa8], xmm2
mulss xmm1, xmm0
movss dword [esi + 0x30], xmm0
movss dword [esi + 0x70], xmm1
jmp 0x509239
mov ebx, dword [esi + 0xac]
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jae 0x50966e
movd xmm0, ebx
movsd xmm1, qword [0x725628]
por xmm0, xmmword [0x7259c0]
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
addss xmm0, dword [0x725640]
mulss xmm0, dword [esi + 0xa8]
movss dword [esi + 0x24], xmm0
subss xmm0, dword [esi + 0x70]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
add esp, 8
fstp dword [esi + 0x128]
xor edi, edi
mov ecx, 0x80000000
movss xmm0, dword [esi + 0x128]
movss dword [esi + 0xf8], xmm0
fld dword [esi + 0xf8]
fnstcw word [esi + 0x7a]
movzx eax, word [esi + 0x7a]
or eax, 0xc00
mov word [esi + 0xbe], ax
fldcw word [esi + 0xbe]
fistp qword [esi + 0xf8]
fldcw word [esi + 0x7a]
ucomiss xmm0, dword [0x726390]
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0xfc]
cmovb eax, ecx
cmovb edx, edi
ucomiss xmm0, dword [0x726394]
mov ecx, 0x7fffffff
cmova eax, ecx
mov ecx, 0xffffffff
cmova edx, ecx
ucomiss xmm0, xmm0
cmovp eax, edi
cmovp edx, edi
test eax, eax
js 0x509330
mov ecx, dword [esi + 0xa4]
cmp edx, ecx
mov edi, ecx
cmovb edi, edx
cmp eax, dword [esi + 0xa0]
cmovge edx, ecx
cmove edx, edi
xor edi, edi
mov dword [esi + 0x2c], edx
jmp 0x509337
mov dword [esi + 0x2c], 0
movss xmm0, dword [esi + 0x70]
addss xmm0, dword [esi + 0x24]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [esi + 0x124]
mov ecx, 0x80000000
movss xmm0, dword [esi + 0x124]
movss dword [esi + 0xf0], xmm0
fld dword [esi + 0xf0]
fnstcw word [esi + 0x78]
movzx eax, word [esi + 0x78]
or eax, 0xc00
mov word [esi + 0xbc], ax
mov eax, 0
fldcw word [esi + 0xbc]
fistp qword [esi + 0xf0]
fldcw word [esi + 0x78]
ucomiss xmm0, dword [0x726390]
jb 0x5093b2
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xf0]
ucomiss xmm0, dword [0x726394]
mov edx, 0xffffffff
movdqa xmm5, xmmword [0x725fb0]
cmova eax, edx
mov edx, 0x7fffffff
cmova ecx, edx
mov edx, dword [esi + 0x2c]
ucomiss xmm0, xmm0
cmovp eax, edi
cmovp ecx, edi
cmp edx, eax
sbb edi, ecx
lea edi, [edx + 1]
mov dword [esi + 0x5c], edi
jge 0x509401
mov edi, dword [esi + 0x58]
cmp eax, edi
mov edx, edi
cmovb edx, eax
test ecx, ecx
cmovns eax, edi
cmove eax, edx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x5c], eax
movss xmm0, dword [esi + 0x24]
lea eax, [ebx + 1]
xorps xmm2, xmm2
xor edi, edi
mov dword [esi + 0x20], 0
mov dword [esi + 4], ebx
mov dword [esi + 0xac], eax
addss xmm0, dword [0x725b30]
movss dword [esi + 0x24], xmm0
jmp 0x509450
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
movaps xmm2, xmmword [esi + 0x40]
movdqa xmm5, xmmword [0x725fb0]
movss dword [eax + edi*4], xmm0
inc edi
inc edx
addss xmm2, xmm0
mov dword [esi + 0x20], edi
cmp edx, dword [esi + 0x5c]
jae 0x5094e0
movd xmm0, edx
movsd xmm1, qword [0x725628]
movaps xmmword [esi + 0x40], xmm2
mov dword [esi + 8], edx
por xmm0, xmmword [0x7259c0]
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
subss xmm0, dword [esi + 0x24]
divss xmm0, dword [esi + 0x30]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 1
call fcn.004ffc80
add esp, 8
fstp dword [esi + 0x120]
movss xmm0, dword [esi + 0x120]
cmp edi, dword [esi + 0x1c]
jne 0x509430
lea ecx, [esi + 0x18]
mov edx, edi
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x158], 3
call fcn.005a6860
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 4]
movss xmm0, dword [esi + 0x10]
jmp 0x509430
test edi, edi
je 0x509543
mov ecx, dword [esi + 0x18]
lea edx, [edi - 1]
and edx, 0x3fffffff
cmp edx, 3
mov eax, ecx
jb 0x50952c
inc edx
movaps xmm0, xmm2
mov dword [esi + 0x40], ecx
mov ebx, edx
shufps xmm0, xmm2, 0
and ebx, 0xfffffffc
lea eax, [ecx + ebx*4]
mov dword [esi + 8], ebx
nop dword [eax]
movups xmm1, xmmword [ecx]
divps xmm1, xmm0
movups xmmword [ecx], xmm1
add ecx, 0x10
add ebx, 0xfffffffc
jne 0x509510
cmp edx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0x40]
je 0x509543
lea ecx, [ecx + edi*4]
nop
movss xmm0, dword [eax]
divss xmm0, xmm2
movss dword [eax], xmm0
add eax, 4
cmp eax, ecx
jne 0x509530
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x58]
imul ebx, eax
cmp ecx, edx
mov edi, edx
cmova edi, ecx
xor ecx, ecx
mov dword [esi + 4], ebx
mov dword [esi + 0x7c], edi
sub edi, edx
imul edx, dword [esi + 0x34]
mov dword [esi + 0x10], edi
add edx, 4
cmp ecx, eax
je 0x509230
nop word cs:[eax + eax]
nop dword [eax]
lea eax, [ecx + 1]
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x2c], edx
mov dword [esi + 0x5c], eax
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x20]
shl ecx, 2
test ecx, ecx
mov dword [esi + 0x40], ecx
je 0x509628
nop dword [eax]
sub ebx, 1
jb 0x50a092
test edx, edx
je 0x50a135
cmp edx, dword [esi + 0x28]
ja 0x50a156
mov eax, dword [esi + 0x64]
mov edi, dword [eax + edx - 4]
add edx, dword [esi + 0x34]
mov eax, edi
mov ecx, edi
movd xmm1, edi
shr edi, 0x18
shr eax, 8
shr ecx, 0x10
movd xmm2, edi
movd xmm4, eax
mov eax, dword [esi + 8]
movd xmm3, ecx
mov ecx, dword [esi + 0x40]
punpckldq xmm3, xmm2
punpckldq xmm1, xmm4
punpcklqdq xmm1, xmm3
pand xmm1, xmm5
movss xmm2, dword [eax]
cvtdq2ps xmm1, xmm1
add eax, 4
add ecx, 0xfffffffc
mov dword [esi + 8], eax
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
addps xmm0, xmm2
test ecx, ecx
mov dword [esi + 0x40], ecx
jne 0x5095b0
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0x24]
add eax, ebx
lea edx, [eax*4 + 4]
shl eax, 2
cmp eax, 0xfffffffc
je 0x50a2cb
cmp edx, dword [esi + 0x3c]
ja 0x50a2ec
mov ecx, eax
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x2c]
movups xmmword [eax + ecx*4], xmm0
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x38]
add edx, 4
cmp ecx, eax
jne 0x509580
jmp 0x509230
cmp dword [esi + 0x1c], 0
je 0x509688
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x40000000
jae 0x50a4e4
lea eax, [ecx*4]
mul dword [esi + 0xc]
mov edx, dword [esi + 0xc]
jo 0x50a4e4
mov ecx, eax
test eax, eax
mov dword [esi + 4], eax
je 0x509705
test ecx, ecx
setns bl
js 0x50a555
mov eax, dword [0x919820]
test eax, eax
jne 0x5096d6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x5096ea
mov dword [0x919820], eax
mov ecx, dword [esi + 4]
push ecx
push 8
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [esi + 0xc]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x50970c
mov edx, dword [esi + 4]
xor ecx, ecx
mov cl, bl
mov dword [esi + 0x158], 1
call fcn.00709d20
jmp 0x50a564
mov dword [esi + 0x10], 1
mov eax, dword [esi + 0x38]
movss xmm2, dword [0x726374]
xor ecx, ecx
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 4
movd xmm0, eax
add eax, 0xffffffff
por xmm0, xmmword [0x7259c0]
mov dword [esi + 0x11c], eax
mov eax, 0
adc eax, 0xffffffff
mov dword [esi + 0x118], eax
subsd xmm0, qword [0x725628]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x7255e0]
divss xmm1, dword [esi + 0x9c]
maxss xmm0, xmm1
movss dword [esi + 0xa0], xmm1
mulss xmm2, xmm0
movss dword [esi + 0xa8], xmm0
movss dword [esi + 0x7c], xmm2
jmp 0x5097a6
mov ecx, dword [esi + 0xa4]
cmp ecx, edx
jae 0x509d49
movd xmm0, ecx
movsd xmm1, qword [0x725628]
mov dword [esi + 0x70], ecx
por xmm0, xmmword [0x7259c0]
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
addss xmm0, dword [0x725640]
mulss xmm0, dword [esi + 0xa0]
movss dword [esi + 0x28], xmm0
subss xmm0, dword [esi + 0x7c]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
add esp, 8
fstp dword [esi + 0x144]
xor edi, edi
mov ecx, 0x80000000
mov ebx, 0xffffffff
movss xmm0, dword [esi + 0x144]
movss dword [esi + 0x108], xmm0
fld dword [esi + 0x108]
fnstcw word [esi + 0x76]
movzx eax, word [esi + 0x76]
or eax, 0xc00
mov word [esi + 0xba], ax
fldcw word [esi + 0xba]
fistp qword [esi + 0x108]
fldcw word [esi + 0x76]
ucomiss xmm0, dword [0x726390]
mov edx, dword [esi + 0x108]
mov eax, dword [esi + 0x10c]
cmovb eax, ecx
cmovb edx, edi
ucomiss xmm0, dword [0x726394]
mov ecx, 0x7fffffff
cmova eax, ecx
cmova edx, ebx
ucomiss xmm0, xmm0
cmovp eax, edi
cmovp edx, edi
test eax, eax
js 0x5098a0
mov ebx, edx
mov edx, dword [esi + 0x11c]
cmp ebx, edx
mov ecx, edx
cmovb ecx, ebx
cmp eax, dword [esi + 0x118]
cmovge ebx, edx
cmove ebx, ecx
mov dword [esi + 0x24], ebx
jmp 0x5098a7
mov dword [esi + 0x24], 0
movss xmm0, dword [esi + 0x7c]
addss xmm0, dword [esi + 0x28]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [esi + 0x140]
mov ecx, 0x80000000
movss xmm0, dword [esi + 0x140]
movss dword [esi + 0x100], xmm0
fld dword [esi + 0x100]
fnstcw word [esi + 0x74]
movzx eax, word [esi + 0x74]
or eax, 0xc00
mov word [esi + 0xb8], ax
mov eax, 0
fldcw word [esi + 0xb8]
fistp qword [esi + 0x100]
fldcw word [esi + 0x74]
ucomiss xmm0, dword [0x726390]
jb 0x509922
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x100]
ucomiss xmm0, dword [0x726394]
mov edx, 0xffffffff
cmova eax, edx
mov edx, 0x7fffffff
cmova ecx, edx
mov edx, dword [esi + 0x24]
ucomiss xmm0, xmm0
cmovp eax, edi
cmovp ecx, edi
cmp edx, eax
sbb edi, ecx
lea edi, [edx + 1]
mov dword [esi + 0x64], edi
jge 0x509969
mov edi, dword [esi + 0x38]
cmp eax, edi
mov edx, edi
cmovb edx, eax
test ecx, ecx
cmovns eax, edi
cmove eax, edx
mov edx, dword [esi + 0x24]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x70]
movss xmm0, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
xorps xmm2, xmm2
xor edi, edi
mov dword [esi + 0x20], 0
inc eax
addss xmm0, dword [0x725b30]
mov dword [esi + 0xa4], eax
mov eax, edx
mov edx, dword [esi + 0xc]
movss dword [esi + 0x28], xmm0
jmp 0x5099bd
mov ecx, ebx
movss dword [ecx + edi*4], xmm0
mov eax, dword [esi + 8]
movaps xmm2, xmmword [esi + 0x40]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x20]
inc eax
addss xmm2, xmm0
inc edi
mov dword [esi + 0x20], edi
cmp eax, dword [esi + 0x64]
jae 0x509a50
movd xmm0, eax
movsd xmm1, qword [0x725628]
mov ebx, ecx
movaps xmmword [esi + 0x40], xmm2
mov dword [esi + 8], eax
por xmm0, xmmword [0x7259c0]
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
subss xmm0, dword [esi + 0x28]
divss xmm0, dword [esi + 0xa8]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 1
call fcn.004ffc80
add esp, 8
fstp dword [esi + 0x12c]
movss xmm0, dword [esi + 0x12c]
cmp edi, dword [esi + 0x1c]
jne 0x5099a0
lea ecx, [esi + 0x18]
mov edx, edi
movss dword [esi + 0x2c], xmm0
mov dword [esi + 0x158], 2
call fcn.005a6860
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
movss xmm0, dword [esi + 0x2c]
jmp 0x5099a2
test edi, edi
je 0x509ac0
lea ebx, [edi - 1]
mov eax, ecx
and ebx, 0x3fffffff
cmp ebx, 3
jb 0x509a9c
inc ebx
movaps xmm0, xmm2
mov dword [esi + 0x30], ecx
mov edx, ebx
mov dword [esi + 0x40], ebx
shufps xmm0, xmm2, 0
and edx, 0xfffffffc
lea eax, [ecx + edx*4]
mov ebx, edx
nop dword [eax]
movups xmm1, xmmword [ecx]
divps xmm1, xmm0
movups xmmword [ecx], xmm1
add ecx, 0x10
add edx, 0xfffffffc
jne 0x509a80
cmp dword [esi + 0x40], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x30]
je 0x509ab3
lea ecx, [ecx + edi*4]
nop
movss xmm0, dword [eax]
divss xmm0, xmm2
movss dword [eax], xmm0
add eax, 4
cmp eax, ecx
jne 0x509aa0
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x30], eax
jmp 0x509ac5
mov dword [esi + 0x30], ecx
xor edi, edi
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x38]
cmp eax, ecx
mov ebx, ecx
cmova ebx, eax
shl edi, 2
xor eax, eax
mov dword [esi + 0x9c], ebx
sub ebx, ecx
lea ecx, [ecx*4 + 4]
mov dword [esi + 0x58], edi
mov dword [esi + 0xac], ebx
cmp eax, edx
je 0x5097a0
nop word [eax + eax]
mov dword [esi + 8], eax
inc eax
mov dword [esi + 0x28], ecx
mov edx, ecx
mov ecx, edi
mov edi, dword [esi + 0x30]
xorps xmm2, xmm2
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0xac]
test ecx, ecx
je 0x509b5d
nop
sub eax, 1
jb 0x50a1e3
test edx, edx
je 0x50a289
cmp edx, dword [esi + 0x3c]
ja 0x50a2aa
mov ebx, dword [esi + 0x60]
movss xmm1, dword [edi]
add edi, 4
add ecx, 0xfffffffc
movups xmm0, xmmword [ebx + edx*4 - 0x10]
shufps xmm1, xmm1, 0
add edx, 4
mulps xmm1, xmm0
addps xmm2, xmm1
test ecx, ecx
jne 0x509b20
movss xmm0, dword [0x725ce8]
movaps xmmword [esi + 0x40], xmm2
movaps xmm1, xmm2
minss xmm0, xmm2
xorps xmm2, xmm2
cmpltss xmm1, xmm2
andnps xmm1, xmm0
sub esp, 4
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esi + 0x13c]
movss xmm1, dword [esi + 0x13c]
ucomiss xmm1, dword [0x725a60]
jbe 0x50a34f
movss xmm0, dword [0x725f80]
ucomiss xmm0, xmm1
jbe 0x50a34f
movaps xmm0, xmmword [esi + 0x40]
movss dword [esi + 0x2c], xmm1
movss xmm1, dword [0x725ce8]
xorps xmm2, xmm2
shufps xmm0, xmm0, 0x55
minss xmm1, xmm0
cmpltss xmm0, xmm2
andnps xmm0, xmm1
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esi + 0x138]
movss xmm1, dword [esi + 0x138]
ucomiss xmm1, dword [0x725a60]
jbe 0x50a375
movss xmm0, dword [0x725f80]
ucomiss xmm0, xmm1
jbe 0x50a375
movaps xmm0, xmmword [esi + 0x40]
movss dword [esi + 0x24], xmm1
movss xmm1, dword [0x725ce8]
xorps xmm2, xmm2
movhlps xmm0, xmm0
minss xmm1, xmm0
cmpltss xmm0, xmm2
andnps xmm0, xmm1
sub esp, 4
movss dword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esi + 0x134]
movss xmm1, dword [esi + 0x134]
ucomiss xmm1, dword [0x725a60]
jbe 0x50a39b
movss xmm0, dword [0x725f80]
ucomiss xmm0, xmm1
jbe 0x50a39b
movaps xmm2, xmmword [esi + 0x40]
movss xmm0, dword [0x725ce8]
movss dword [esi + 0x5c], xmm1
xorps xmm1, xmm1
shufps xmm2, xmm2, 0xff
minss xmm0, xmm2
cmpltss xmm2, xmm1
andnps xmm2, xmm0
sub esp, 4
movss dword [esp], xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
fstp dword [esi + 0x130]
movss xmm0, dword [esi + 0x130]
ucomiss xmm0, dword [0x725a60]
jbe 0x50a3c1
movss xmm1, dword [0x725f80]
ucomiss xmm1, xmm0
jbe 0x50a3c1
mov edi, dword [esi + 8]
imul edi, dword [esi + 0xc]
add edi, dword [esi + 0x70]
lea edx, [edi*4 + 4]
shl edi, 2
cmp edi, 0xfffffffc
je 0x50a30d
cmp edx, dword [esi + 4]
ja 0x50a32e
cvttss2si eax, dword [esi + 0x5c]
cvttss2si ecx, xmm0
mov edx, dword [esi + 0xc]
shl ecx, 0x18
movzx eax, al
shl eax, 0x10
or eax, ecx
cvttss2si ecx, dword [esi + 0x24]
movzx ecx, cl
shl ecx, 8
or ecx, eax
cvttss2si eax, dword [esi + 0x2c]
movzx eax, al
or eax, ecx
mov ecx, dword [esi + 0x10]
mov dword [ecx + edi], eax
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x58]
add ecx, dword [esi + 0x34]
cmp eax, edx
jne 0x509b00
jmp 0x5097a0
cmp dword [esi + 0x1c], 0
je 0x509d63
push dword [esi + 0x30]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esi + 0xc]
cmp dword [esi + 0x3c], 0
je 0x509d7d
push dword [esi + 0x60]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
lea eax, [esi + 0x18]
cmp edx, 0x3fffffff
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
ja 0x50a445
lea eax, [edx*4]
mul edx
jo 0x50a445
cmp eax, ecx
mov edx, ecx
mov dword [esi + 0x158], 0xa
ja 0x50a4bd
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
lea ecx, [esi + 0x88]
mov dword [esi + 4], edx
mov dword [esi + 0xb4], edx
mov byte [esi + 0x17], 0
lea edx, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov word [esi + 0x84], 0x105
lea ecx, [esi + 0xc0]
mov dword [esi + 0xb0], ebx
push edi
push edi
push eax
push ebx
call fcn.004b30d0
add esp, 0x10
mov eax, dword [esi + 0xc0]
cmp eax, 6
jne 0x509e85
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x158], 5
mov dword [esi + 0x68], edx
mov edx, dword [esi + 4]
mov dword [esi + 0x6c], edx
push 0
mov edx, dword [esi + 0xc]
push edx
push edx
push 0x30000
push 1
push ecx
push eax
call sub.user32.dll_CreateIconFromResourceEx
cmp dword [esi + 0x1c], 0
mov edi, eax
je 0x50a1b6
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x50a1b6
cmp eax, 4
ja 0x50a042
mov ecx, dword [esi + 0x114]
add ecx, dword [eax*4 + 0x50a7a8]
jmp ecx
cmp byte [esi + 0xc4], 3
jne 0x50a19d
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
mov dword [esi + 0x40], eax
mov eax, dword [eax + 4]
mov dword [esi + 0x158], 9
mov dword [esi + 0x34], ecx
push ecx
mov dword [esi + 8], eax
call dword [eax]
add esp, 4
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x50a18c
cmp dword [eax + 8], 9
jae 0x50a177
mov eax, dword [esi + 0x34]
jmp 0x50a17d
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0xc0], 0x740064
mov dword [esi + 0xc4], 2
mov dword [esi + 0xd0], 0
mov dword [esi + 0x158], 3
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], edx
mov edx, dword [esi + 0x58]
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0xe8]
mov dword [esi + 0x88], ecx
lea ecx, [esi + 0x88]
mov dword [esi + 0x8c], 0x4ac850
mov dword [esi + 0xc8], ecx
lea ecx, [esi + 0xc0]
mov dword [esi + 0xcc], 2
mov dword [esi + 0x84], edx
lea edx, [esi + 0x80]
mov dword [esi + 0x90], edx
mov edx, 0x74047c
mov dword [esi + 0x94], 0x4ac850
call fcn.00709f70
jmp 0x50a564
mov dword [esi + 0x158], 3
mov ecx, 0xfffffffc
push 0x74047c
call fcn.0070a2f0
add esp, 4
jmp 0x50a564
mov ecx, edx
mov edx, dword [esi + 0x28]
mov dword [esi + 0x158], 3
push 0x74047c
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov eax, dword [esi + 0x34]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esi + 0x40]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x1c], 0
je 0x50a1b4
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
cmp dword [esi + 4], 0
je 0x50a1cd
push dword [esi + 0x10]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x150]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0xc0], 0x740064
mov dword [esi + 0xc4], 2
mov dword [esi + 0xd0], 0
mov dword [esi + 0x158], 2
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0xe8]
mov dword [esi + 0x88], ecx
lea ecx, [esi + 0x88]
mov dword [esi + 0x8c], 0x4ac850
mov dword [esi + 0xc8], ecx
lea ecx, [esi + 0xc0]
mov dword [esi + 0xcc], 2
mov dword [esi + 0x84], edx
lea edx, [esi + 0x80]
mov dword [esi + 0x90], edx
mov edx, 0x73f4dc
mov dword [esi + 0x94], 0x4ac850
call fcn.00709f70
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, 0xfffffffc
push 0x73f4dc
call fcn.0070a2f0
add esp, 4
jmp 0x50a564
mov ecx, edx
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x158], 2
push 0x73f4dc
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 3
mov ecx, 0xfffffffc
push 0x73f47c
call fcn.0070a2f0
add esp, 4
jmp 0x50a564
mov ecx, edx
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x158], 3
push 0x73f47c
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, 0xfffffffc
push 0x73f4cc
call fcn.0070a2f0
add esp, 4
jmp 0x50a564
mov ecx, edx
mov edx, dword [esi + 4]
mov dword [esi + 0x158], 2
push 0x73f4cc
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x73f48c
call fcn.0070a0f0
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x73f49c
call fcn.0070a0f0
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x73f4ac
call fcn.0070a0f0
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
push 0x73f4bc
call fcn.0070a0f0
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 4
mov ecx, 0xfffffffc
xor edx, edx
push 0x74047c
call fcn.0070a2f0
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 4
push 0x74047c
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov edx, dword [esi + 4]
mov dword [esi + 0x158], 4
push 0x74046c
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov eax, dword [esi + 0x10]
mov dword [esi + 0xb4], ecx
mov byte [esi + 0x17], 1
mov dword [esi + 0x158], 0xa
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_synconce.rs
mov edx, 0x2b
mov dword [esi + 0xb0], eax
push 0x8b78f4
call fcn.0070a0f0
add esp, 4
jmp 0x50a564
mov ecx, str.Buffer_length_in__ImageBuffer::new__overflows_usize
mov edx, 0x33
push 0x8b7948
call fcn.0070a3e0
add esp, 4
ud2
mov dword [esi + 0x158], 0
mov ecx, str.Buffer_length_in__ImageBuffer::new__overflows_usize
mov edx, 0x33
push 0x8b7948
call fcn.0070a3e0
add esp, 4
jmp 0x50a564
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xb4], edx
mov byte [esi + 0x17], 1
mov dword [esi + 0xb0], ecx
mov ecx, eax
push 0x8b7904
call fcn.0070a080
add esp, 4
jmp 0x50a564
mov dword [esi + 0x158], 1
mov ecx, str.Buffer_length_in__ImageBuffer::new__overflows_usize
mov edx, 0x33
push 0x8b7948
call fcn.0070a3e0
add esp, 4
jmp 0x50a564
mov edx, dword [esi + 4]
mov ecx, 1
call fcn.00709d20
ud2
mov edx, dword [esi + 0x40]
mov ecx, ebx
mov dword [esi + 0x158], 0
call fcn.00709d20
jmp 0x50a564
call fcn.00425040
ud2
mov dword [esi + 0x158], 0
call fcn.00425040
jmp 0x50a564
mov dword [esi + 0x158], 0
call fcn.00425040
jmp 0x50a564
mov dword [esi + 0x158], 1
call fcn.00425040
ud2