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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
mov eax, dword [0x62f040]
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 0x540822
lea eax, [ecx*4]
push eax
push 0
push edi
call fcn.005826f0
add esp, 0xc
jmp 0x54082f
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 [0x61eb98]
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 0x54097c
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax]
comiss xmm3, xmm0
movss dword [esp + 0x64], xmm0
jbe 0x5408a2
mov dword [esp + 0x64], 0
jmp 0x5408af
comiss xmm0, xmm2
jbe 0x5408af
mov dword [esp + 0x64], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0xe8], eax
fild dword [esp + 0xe8]
jns 0x5408cb
fadd dword [0x61ec5c]
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 0x540970
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 0x54092f
mov dword [esp + 0x38], 0
jmp 0x540942
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm2
jbe 0x540942
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 0x540989
fstp st(0)
mov dword [esp + 0x38], eax
fstp st(0)
mov edi, eax
jmp 0x54098d
mov dword [esp + 0x88], 0
xor edi, edi
mov dword [esp + 0x38], edi
test byte [esp + 0x78], 3
je 0x5409f6
movss xmm0, dword [esi + 0x38]
comiss xmm0, xmm3
movss dword [esp + 0xb4], xmm0
ja 0x5409b3
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 0x540a20
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 0x540b22
movss xmm0, dword [esi + 0x44]
comiss xmm0, xmm2
movss dword [esp + 0x48], xmm0
jbe 0x540b15
fstp st(1)
fstp st(0)
fld dword [esp + 0x48]
call fcn.005a2800
fstp qword [esp + 0xe8]
fld dword [esp + 0x60]
fst qword [esp + 0xd0]
call fcn.005a2800
fchs
sub esp, 8
fdiv qword [esp + 0xf0]
fstp qword [esp]
call fcn.0059efd0
fsub qword [0x61ebc0]
add esp, 8
fmul qword [esp + 0xe8]
call fcn.005a27b0
fmul qword [esp + 0xd0]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld dword [esp + 0x94]
fcomi st(1)
ja 0x540af6
push ecx
fstp st(0)
fstp dword [esp]
call fcn.005a29c1
fld dword [esp + 0x98]
add esp, 4
test ax, ax
jg 0x540af8
movss xmm1, dword [esp + 0x54]
lea ecx, [ebx - 1]
movss xmm2, dword [0x61eb98]
xorps xmm3, xmm3
comiss xmm1, xmm2
movss xmm0, dword [esp + 0x48]
fld dword [esp + 0x60]
jbe 0x540b2e
movaps xmm1, xmm2
movss dword [esp + 0x54], xmm1
jmp 0x540b2e
fstp st(1)
movss xmm2, dword [0x61eb98]
lea ecx, [ebx - 1]
fld dword [esp + 0x60]
xorps xmm3, xmm3
movaps xmm1, xmm3
movss dword [esp + 0x54], xmm1
jmp 0x540b28
movaps xmm1, xmm3
movss dword [esp + 0x54], xmm1
jmp 0x540b2e
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 0x540b4e
mov dword [esp + 0x98], edi
xor eax, eax
jmp 0x540b5d
mov eax, dword [esp + 0x74]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
test ecx, ecx
js 0x541125
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 0x540b9d
fxch st(1)
fxch st(2)
lea ecx, [ecx]
test al, al
jne 0x540d27
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 0x540cdd
lfence
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + edi*4]
comiss xmm3, xmm0
movss dword [esp + 0x44], xmm0
jbe 0x540bf4
mov dword [esp + 0x44], 0
jmp 0x540c01
comiss xmm0, xmm2
jbe 0x540c01
mov dword [esp + 0x44], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
jns 0x540c1d
fadd dword [0x61ec5c]
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 0x540cd5
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 0x540c89
mov dword [esp + 0x38], 0
jmp 0x540c9c
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm2
jbe 0x540c9c
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 0x540cea
fstp st(0)
mov eax, edi
fstp st(0)
jmp 0x540ce8
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 0x540d4f
mov edx, dword [esp + 0xa8]
cmp edx, dword [esi + 0x58]
jae 0x540d4f
cmp dword [esp + 0x98], eax
ja 0x540d4f
mov dword [esp + 0x98], eax
mov dword [esp + 0x64], edx
jmp 0x540d4f
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 0x540f06
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 0x540f0f
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 0x540efb
jmp 0x540f16
mov edi, dword [esp + 0xb0]
jmp 0x540f1a
mov edi, dword [esp + 0xb0]
mov eax, dword [esp + 0x34]
mov ecx, edx
cmp edx, eax
jge 0x540f34
mov esi, dword [esp + 0xcc]
mov dword [edi + ecx*4], esi
add ecx, ebx
cmp ecx, eax
jl 0x540f2b
cmp dword [esp + 0xd0], 0
je 0x540f81
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x540f6d
mov ecx, edx
cmp edx, dword [esp + 0xc0]
jge 0x540f69
mov esi, dword [esp + 0xa4]
mov dword ds:[edi + ecx*4], esi
add ecx, ebx
cmp ecx, dword [esp + 0xc0]
jl 0x540f58
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 0x541090
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 0x541015
fstp st(1)
movss dword [esp + 0x40], xmm1
fld dword [esp + 0x54]
fmul st(1)
call fcn.005a0e10
mov ecx, eax
cmp ecx, esi
jg 0x541088
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.005a0e10
sub esi, dword [esp + 0x70]
mov ecx, eax
cmp ecx, esi
jle 0x540fdd
fstp st(0)
fstp st(1)
jmp 0x541088
movss xmm0, dword [esp + 0xb4]
fld st(1)
fmul st(1)
movss dword [esp + 0x40], xmm0
call fcn.005a0e10
mov ecx, eax
xor esi, esi
mov eax, dword [esp + 0xac]
dec eax
cmp ecx, eax
jge 0x541086
fld dword [esp + 0x40]
mov eax, dword [esp + 0x70]
add eax, esi
cmp ecx, eax
jl 0x541060
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.005a0e10
mov ecx, eax
mov eax, dword [esp + 0xac]
dec eax
cmp ecx, eax
jl 0x541041
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 0x5410cc
mov esi, dword [esp + 0x7c]
mov ecx, esi
cmp esi, dword [esp + 0x90]
jg 0x5410cc
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xdc]
mov dword ds:[edi + ecx*4], eax
add ecx, ebx
cmp ecx, esi
jle 0x5410b9
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jg 0x5410e4
mov esi, dword [esp + 0x74]
mov dword ds:[edi + eax*4], esi
add eax, ebx
cmp eax, ecx
jle 0x5410d8
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 [0x61eb98]
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 0x540b99
fstp st(1)
fstp st(0)
jmp 0x541127
fstp st(1)
cmp dword [esp + 0x4c], 0
fstp st(0)
je 0x5412b5
mov ecx, dword ds:[esp + 0x64]
cmp ecx, dword [esi + 0x14]
jae 0x5412b5
test byte ds:[esp + 0x78], 0x10
lfence
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + ecx*4]
movss dword [esp + 0x70], xmm0
je 0x541173
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 [0x5a48f4]
call esi
mov esi, dword ds:[esp + 0x68]
mov edi, eax
test edi, edi
je 0x5412b9
xor eax, eax
lfence
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5411ca
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 [0x62fd64]
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 0x541246
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 [0x62fd68]
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 0x54129d
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 0x5412bd
lfence
call fcn.004fc420
jmp 0x5412bd
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
cmp dword [esi + 0x60], 0
je 0x541339
mov eax, dword [esi + 0x84]
xor edi, edi
test eax, eax
je 0x5412dd
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 0x541339
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.0058078f
mov esp, ebp
pop ebp
ret 0xc