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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xb0], edi
mov eax, dword [esi + 4]
mov ecx, eax
mov dword [esp + 0xac], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esi]
bswap eax
shr eax, 8
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x28]
bswap eax
shr eax, 8
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0x24]
bswap eax
shr eax, 8
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0x2c]
bswap eax
imul ecx, ebx
shr eax, 8
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x68], esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x3f], 0
mov dword [esp + 0xa8], 0
test eax, eax
jne 0x5403e2
lea eax, [ecx*4]
push eax
push 0
push edi
call fcn.00582250
add esp, 0xc
jmp 0x5403ef
bswap eax
push ecx
shr eax, 8
push eax
push edi
call sym.SystemInformer.exe_PhFillMemoryUlong
cmp dword ds:[esi + 0x14], 0
lea ecx, [ebx - 1]
fldz
xorps xmm3, xmm3
movss xmm2, dword [0x61da98]
fst dword [esp + 0x94]
mov dword [esp + 0x50], ecx
mov dword [esp + 0xc8], 0x7fffffff
mov dword [esp + 0xbc], 0
mov dword [esp + 0x9c], 0x7fffffff
mov dword [esp + 0xa0], 0
jbe 0x54053c
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax]
comiss xmm3, xmm0
movss dword [esp + 0x64], xmm0
jbe 0x540462
mov dword [esp + 0x64], 0
jmp 0x54046f
comiss xmm0, xmm2
jbe 0x54046f
mov dword [esp + 0x64], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0xe8], eax
fild dword [esp + 0xe8]
jns 0x54048b
fadd dword [0x61db5c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fld dword [esp + 0x64]
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
or eax, 0xc00
test byte [esi + 8], 0x10
mov dword [esp + 0x4c], eax
fld st(0)
fmul st(2)
fldcw word [esp + 0x4c]
fistp qword [esp + 0xe8]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x88], eax
fldcw word [esp + 0x34]
je 0x540530
mov eax, dword [esi + 0x1c]
fadd dword [eax]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fxch st(2)
fcomi st(2)
fstp st(2)
jbe 0x5404ef
mov dword [esp + 0x38], 0
jmp 0x540502
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm2
jbe 0x540502
mov dword [esp + 0x38], 0x3f800000
fmul dword [esp + 0x38]
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
or eax, 0xc00
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
fistp qword [esp + 0xe8]
mov edi, dword [esp + 0xe8]
fldcw word [esp + 0x34]
jmp 0x540549
fstp st(0)
mov dword [esp + 0x38], eax
fstp st(0)
mov edi, eax
jmp 0x54054d
mov dword [esp + 0x88], 0
xor edi, edi
mov dword [esp + 0x38], edi
test byte [esp + 0x78], 3
je 0x5405b6
movss xmm0, dword [esi + 0x38]
comiss xmm0, xmm3
movss dword [esp + 0xb4], xmm0
ja 0x540573
movaps xmm0, xmm3
movss dword [esp + 0xb4], xmm0
mov eax, dword [esi + 0x40]
xor edx, edx
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x3c]
imul eax, dword [esi + 0xc]
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x54], xmm0
div dword [esp + 0x58]
mov eax, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esi + 0x30]
dec eax
bswap edx
shr edx, 8
mov dword [esp + 0x58], eax
mov dword [esp + 0xa4], edx
jmp 0x5405e0
mov eax, dword [esp + 0x74]
movss xmm0, dword [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
movss dword [esp + 0xb4], xmm0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x78]
fld dword [esp + 0x60]
and eax, 6
cmp al, 6
jne 0x5406e2
movss xmm0, dword [esi + 0x44]
comiss xmm0, xmm2
movss dword [esp + 0x48], xmm0
jbe 0x5406d5
fstp st(1)
fstp st(0)
fld dword [esp + 0x48]
call fcn.005a2360
fstp qword [esp + 0xe8]
fld dword [esp + 0x60]
fst qword [esp + 0xd0]
call fcn.005a2360
fchs
sub esp, 8
fdiv qword [esp + 0xf0]
fstp qword [esp]
call fcn.0059eb30
fsub qword [0x61dac0]
add esp, 8
fmul qword [esp + 0xe8]
call fcn.005a2310
fmul qword [esp + 0xd0]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld dword [esp + 0x94]
fcomi st(1)
ja 0x5406b6
push ecx
fstp st(0)
fstp dword [esp]
call fcn.005a2521
fld dword [esp + 0x98]
add esp, 4
test ax, ax
jg 0x5406b8
movss xmm1, dword [esp + 0x54]
lea ecx, [ebx - 1]
movss xmm2, dword [0x61da98]
xorps xmm3, xmm3
comiss xmm1, xmm2
movss xmm0, dword [esp + 0x48]
fld dword [esp + 0x60]
jbe 0x5406ee
movaps xmm1, xmm2
movss dword [esp + 0x54], xmm1
jmp 0x5406ee
fstp st(1)
movss xmm2, dword [0x61da98]
lea ecx, [ebx - 1]
fld dword [esp + 0x60]
xorps xmm3, xmm3
movaps xmm1, xmm3
movss dword [esp + 0x54], xmm1
jmp 0x5406e8
movaps xmm1, xmm3
movss dword [esp + 0x54], xmm1
jmp 0x5406ee
movss xmm1, dword [esp + 0x54]
movss xmm0, dword [esp + 0x48]
mov eax, dword [esp + 0x78]
and eax, 0x1000
movss dword [esp + 0x7c], xmm0
mov dword [esp + 0x4c], eax
je 0x54070e
mov dword [esp + 0x98], edi
xor eax, eax
jmp 0x54071d
mov eax, dword [esp + 0x74]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
test ecx, ecx
js 0x540ce5
mov eax, dword [esp + 0x78]
mov ecx, eax
fld dword [esp + 0x7c]
and ecx, 1
mov dword [esp + 0xd0], ecx
mov ecx, eax
and ecx, 2
and eax, 0x10
mov dword [esp + 0xc4], eax
mov al, byte [esp + 0x3f]
mov dword [esp + 0xe8], ecx
jmp 0x54075d
fxch st(1)
fxch st(2)
lea ecx, [ecx]
test al, al
jne 0x5408e7
mov ecx, dword [esp + 0x88]
mov edx, edi
mov edi, dword [esp + 0xa8]
inc edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa8], edi
cmp edi, dword [esi + 0x14]
jae 0x54089d
lfence
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + edi*4]
comiss xmm3, xmm0
movss dword [esp + 0x44], xmm0
jbe 0x5407b4
mov dword [esp + 0x44], 0
jmp 0x5407c1
comiss xmm0, xmm2
jbe 0x5407c1
mov dword [esp + 0x44], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
jns 0x5407dd
fadd dword [0x61db5c]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fld dword [esp + 0x44]
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
or eax, 0xc00
test byte [esi + 8], 0x10
mov dword [esp + 0x44], eax
fld st(0)
fmul st(2)
fldcw word [esp + 0x44]
fistp qword [esp + 0x80]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x88], edi
fldcw word [esp + 0x34]
je 0x540895
mov eax, dword [esi + 0x1c]
mov ebx, dword [esp + 0xa8]
fadd dword [eax + ebx*4]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fxch st(4)
fcompi st(4)
fstp st(3)
jbe 0x540849
mov dword [esp + 0x38], 0
jmp 0x54085c
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm2
jbe 0x54085c
mov dword [esp + 0x38], 0x3f800000
fld dword [esp + 0x38]
mov ebx, dword [esp + 0xb8]
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
or eax, 0xc00
mov dword [esp + 0x44], eax
fmulp st(3)
fxch st(2)
fldcw word [esp + 0x44]
fistp qword [esp + 0x80]
mov eax, dword [esp + 0x80]
fldcw word [esp + 0x34]
jmp 0x5408aa
fstp st(0)
mov eax, edi
fstp st(0)
jmp 0x5408a8
xor edi, edi
xor eax, eax
mov dword [esp + 0x88], edi
fstp st(2)
add edi, ecx
mov dword [esp + 0x38], eax
add edx, eax
shr edi, 1
shr edx, 1
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x44], edx
je 0x54090f
mov edx, dword [esp + 0xa8]
cmp edx, dword [esi + 0x58]
jae 0x54090f
cmp dword [esp + 0x98], eax
ja 0x54090f
mov dword [esp + 0x98], eax
mov dword [esp + 0x64], edx
jmp 0x54090f
mov ecx, dword [esp + 0x6c]
fstp st(2)
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
add ecx, edi
mov edi, dword [esp + 0xbc]
shr ecx, 1
mov edx, ecx
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x6c]
imul edx, ebx
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0xc8]
add edx, ebx
cmp edi, eax
cmovae eax, ecx
imul eax, ebx
mov dword [esp + 0x48], eax
mov eax, ebx
imul eax, dword [esp + 0x40]
mov ebx, edx
cmp edi, dword [esp + 0x40]
mov edi, ecx
mov ecx, dword [esp + 0x6c]
cmovae ebx, eax
cmp ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xb8]
cmovae edi, ecx
mov eax, dword [esp + 0x34]
imul edi, ebx
mov dword [esp + 0xbc], edi
mov edi, ebx
imul edi, ecx
cmp ecx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
cmovae edi, edx
mov edx, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0xc8], edi
cmovg eax, esi
cmp ecx, dword [esp + 0x80]
cmovl ecx, dword [esp + 0x80]
add eax, edx
add ecx, edx
mov dword [esp + 0x34], eax
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x48], ecx
je 0x540ac6
mov ecx, dword [esp + 0x44]
add ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0x8c]
shr ecx, 1
mov edx, ecx
mov dword [esp + 0x80], edi
imul edx, ebx
mov edi, eax
mov esi, dword [esp + 0x9c]
add edx, ebx
cmp dword [esp + 0x44], eax
cmovae edi, ecx
imul eax, ebx
imul edi, ebx
mov ebx, edx
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x8c]
cmovae ebx, eax
cmovae ecx, edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xb8]
imul ecx, ebx
mov dword [esp + 0xa0], ecx
mov ecx, edi
imul ecx, ebx
cmp edi, dword [esp + 0x8c]
cmovae ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
cmovg ecx, esi
mov esi, dword [esp + 0x90]
cmp esi, dword [esp + 0x80]
cmovl esi, dword [esp + 0x80]
add ecx, edx
add esi, edx
mov dword [esp + 0x7c], ecx
add eax, ebx
mov dword [esp + 0x90], esi
cmp eax, ecx
jge 0x540acf
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0xe4]
mov dword [esp + 0x7c], ecx
mov dword [edi + eax*4], esi
add eax, ebx
cmp eax, ecx
jl 0x540abb
jmp 0x540ad6
mov edi, dword [esp + 0xb0]
jmp 0x540ada
mov edi, dword [esp + 0xb0]
mov eax, dword [esp + 0x34]
mov ecx, edx
cmp edx, eax
jge 0x540af4
mov esi, dword [esp + 0xcc]
mov dword [edi + ecx*4], esi
add ecx, ebx
cmp ecx, eax
jl 0x540aeb
cmp dword [esp + 0xd0], 0
je 0x540b41
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x540b2d
mov ecx, edx
cmp edx, dword [esp + 0xc0]
jge 0x540b29
mov esi, dword [esp + 0xa4]
mov dword ds:[edi + ecx*4], esi
add ecx, ebx
cmp ecx, dword [esp + 0xc0]
jl 0x540b18
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
inc ecx
cmp ecx, dword [esi + 0x34]
mov esi, 0
cmove ecx, esi
mov dword [esp + 0x58], ecx
cmp dword [esp + 0xe8], 0
je 0x540c50
mov esi, dword [esp + 0xac]
dec esi
test byte [esp + 0x78], 4
mov dword [esp + 0x80], esi
fild dword [esp + 0x80]
fstp dword [esp + 0x80]
fld dword [esp + 0x80]
je 0x540bd5
fstp st(1)
movss dword [esp + 0x40], xmm1
fld dword [esp + 0x54]
fmul st(1)
call fcn.005a0970
mov ecx, eax
cmp ecx, esi
jg 0x540c48
fld st(1)
fld dword [esp + 0x40]
fdiv st(1)
mov eax, ecx
mov edx, dword [esp + 0xa4]
mov esi, ecx
imul eax, ebx
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld st(0)
fmul st(3)
add eax, dword [esp + 0x50]
mov dword [edi + eax*4], edx
call fcn.005a0970
sub esi, dword [esp + 0x70]
mov ecx, eax
cmp ecx, esi
jle 0x540b9d
fstp st(0)
fstp st(1)
jmp 0x540c48
movss xmm0, dword [esp + 0xb4]
fld st(1)
fmul st(1)
movss dword [esp + 0x40], xmm0
call fcn.005a0970
mov ecx, eax
xor esi, esi
mov eax, dword [esp + 0xac]
dec eax
cmp ecx, eax
jge 0x540c46
fld dword [esp + 0x40]
mov eax, dword [esp + 0x70]
add eax, esi
cmp ecx, eax
jl 0x540c20
mov edx, dword [esp + 0xa4]
mov eax, ecx
imul eax, ebx
mov esi, ecx
add eax, dword [esp + 0x50]
mov dword [edi + eax*4], edx
fadd st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld st(0)
fmul st(2)
call fcn.005a0970
mov ecx, eax
mov eax, dword [esp + 0xac]
dec eax
cmp ecx, eax
jl 0x540c01
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0xc4], 0
fstp st(0)
je 0x540c8c
mov esi, dword [esp + 0x7c]
mov ecx, esi
cmp esi, dword [esp + 0x90]
jg 0x540c8c
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xdc]
mov dword ds:[edi + ecx*4], eax
add ecx, ebx
cmp ecx, esi
jle 0x540c79
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jg 0x540ca4
mov esi, dword [esp + 0x74]
mov dword ds:[edi + eax*4], esi
add eax, ebx
cmp eax, ecx
jle 0x540c98
mov al, byte [esp + 0x3f]
xorps xmm3, xmm3
fld dword [esp + 0x94]
xor al, 1
movss xmm1, dword [esp + 0x54]
sub edx, 1
movss xmm2, dword [0x61da98]
fld dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov byte [esp + 0x3f], al
mov dword [esp + 0x50], edx
jns 0x540759
fstp st(1)
fstp st(0)
jmp 0x540ce7
fstp st(1)
cmp dword [esp + 0x4c], 0
fstp st(0)
je 0x540e75
mov ecx, dword ds:[esp + 0x64]
cmp ecx, dword [esi + 0x14]
jae 0x540e75
test byte ds:[esp + 0x78], 0x10
lfence
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + ecx*4]
movss dword [esp + 0x70], xmm0
je 0x540d33
lfence
mov eax, dword [esi + 0x1c]
fld dword [eax + ecx*4]
fadd dword [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [esi + 0x4c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x78]
fstp dword [esp]
push ecx
push esi
mov esi, dword [esi + 0x48]
mov ecx, esi
call dword [0x5a38f4]
call esi
mov esi, dword ds:[esp + 0x68]
mov edi, eax
test edi, edi
je 0x540e79
xor eax, eax
lfence
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x540d8a
push eax
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x4c], eax
push dword [esi + 0x54]
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, ds:[esp + 0xdc]
push eax
mov eax, dword [edi]
shr eax, 1
push eax
push dword [edi + 4]
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0xac]
sub edx, dword [esp + 0x98]
mov eax, dword [0x62ed64]
sub edx, eax
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0xf4], edx
sub edx, ecx
mov dword [esp + 0xec], edx
cmp edx, eax
jge 0x540e06
mov dword [esp + 0xec], eax
add eax, ecx
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x64]
mov ecx, ebx
add eax, eax
mov dword [esp + 0xe8], 0
cmp eax, ebx
push 0x102
cmovl ecx, eax
lea eax, [esp + 0xec]
push eax
mov eax, dword [edi]
sub ebx, ecx
sub ebx, dword [0x62ed68]
shr eax, 1
push eax
push dword [edi + 4]
mov dword [esp + 0x100], ebx
mov ebx, dword [esp + 0x6c]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x540e5d
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x540e7d
lfence
call fcn.004fc020
jmp 0x540e7d
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
cmp dword [esi + 0x60], 0
je 0x540ef9
mov eax, dword [esi + 0x84]
xor edi, edi
test eax, eax
je 0x540e9d
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esi + 0x8c]
push ebx
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esi + 0x74]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [esi + 0x88]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x100
lea eax, [esi + 0x64]
push eax
mov eax, dword [esi + 0x5c]
shr eax, 1
push eax
push dword [esi + 0x60]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
test edi, edi
je 0x540ef9
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0xc