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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push edi
mov byte [esp + 0x53], 0
mov eax, dword [esi + 4]
mov ecx, eax
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x20]
mov edi, dword [esi]
bswap eax
shr eax, 8
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x28]
bswap eax
shr eax, 8
mov dword [esp + 0xd4], eax
mov eax, dword [esi + 0x24]
bswap eax
shr eax, 8
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0x2c]
bswap eax
imul ecx, edi
shr eax, 8
mov dword [esp + 0xd0], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x98], 0
mov dword [esp + 0xc8], ecx
test eax, eax
jne 0x4c41ef
lea eax, [ecx*4]
push eax
push 0
push ebx
call fcn.004dce30
add esp, 0xc
jmp 0x4c41fc
bswap eax
push ecx
shr eax, 8
push eax
push ebx
call sym.ProcessHacker.exe_PhFillMemoryUlong
movss xmm2, dword [0x537fe8]
lea ecx, [edi - 1]
mov eax, 0x7fffffff
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
xorps xmm1, xmm1
xor eax, eax
mov dword [esp + 0xb4], VariantCopy
mov dword [esp + 0x90], eax
mov dword [esp + 0xb8], eax
fldz
cmp dword [esi + 0x14], eax
jbe 0x4c4331
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax]
comiss xmm1, xmm0
movss dword [esp + 0x78], xmm0
jbe 0x4c4259
mov dword [esp + 0x78], 0
jmp 0x4c4266
comiss xmm0, xmm2
jbe 0x4c4266
mov dword [esp + 0x78], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0xa8], eax
fild dword [esp + 0xa8]
jns 0x4c4282
fadd dword [0x53809c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fld dword [esp + 0x78]
fnstcw word [esp + 0x48]
movzx eax, word [esp + 0x48]
or eax, 0xc00
test byte [esi + 8], 0x10
mov dword [esp + 0x5c], eax
fld st(0)
fmul st(2)
fldcw word [esp + 0x5c]
fistp qword [esp + 0xa8]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x8c], edx
fldcw word [esp + 0x48]
je 0x4c4327
mov eax, dword [esi + 0x1c]
fadd dword [eax]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fxch st(2)
fcomi st(2)
fstp st(2)
jbe 0x4c42e6
mov dword [esp + 0x4c], 0
jmp 0x4c42f9
movss xmm0, dword [esp + 0x4c]
comiss xmm0, xmm2
jbe 0x4c42f9
mov dword [esp + 0x4c], 0x3f800000
fmul dword [esp + 0x4c]
fnstcw word [esp + 0x48]
movzx eax, word [esp + 0x48]
or eax, 0xc00
mov dword [esp + 0x5c], eax
fldcw word [esp + 0x5c]
fistp qword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
fldcw word [esp + 0x48]
jmp 0x4c433a
fstp st(0)
mov dword [esp + 0x48], edx
fstp st(0)
jmp 0x4c433e
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x48], eax
test byte [esp + 0x88], 3
je 0x4c43ad
movss xmm0, dword [esi + 0x38]
comiss xmm0, xmm1
movss dword [esp + 0xbc], xmm0
ja 0x4c4367
movaps xmm0, xmm1
movss dword [esp + 0xbc], xmm0
mov eax, dword [esi + 0x40]
xor edx, edx
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x3c]
imul eax, dword [esi + 0xc]
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x64], xmm0
div dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
sub eax, edx
mov edx, dword [esi + 0x30]
dec eax
bswap edx
shr edx, 8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x9c], edx
jmp 0x4c43e3
mov eax, dword [esp + 0x84]
movss xmm0, dword [esp + 0x44]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
movss dword [esp + 0xbc], xmm0
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x88]
fld dword [esp + 0x44]
and eax, 6
cmp al, 6
jne 0x4c451a
movss xmm0, dword [esi + 0x44]
comiss xmm0, xmm2
movss dword [esp + 0x80], xmm0
jbe 0x4c4508
fstp st(1)
fstp st(0)
fld dword [esp + 0x80]
call fcn.004fd470
fstp qword [esp + 0xa8]
fld dword [esp + 0x44]
fst qword [esp + 0xd8]
call fcn.004fd470
fdiv qword [esp + 0xa8]
sub esp, 8
fchs
fstp qword [esp]
call fcn.004f5730
fsub qword [0x538010]
add esp, 8
fmul qword [esp + 0xa8]
call fcn.004fd420
fmul qword [esp + 0xd8]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fldz
fcomi st(1)
ja 0x4c44e0
push ecx
fstp st(0)
fstp dword [esp]
call fcn.004e577c
add esp, 4
test ax, ax
jg 0x4c44dc
fld dword [esp + 0x80]
lea ecx, [edi - 1]
movss xmm1, dword [esp + 0x64]
xorps xmm3, xmm3
movss xmm2, dword [0x537fe8]
comiss xmm1, xmm2
fldz
fld dword [esp + 0x44]
jbe 0x4c44b7
movaps xmm1, xmm2
movss dword [esp + 0x64], xmm1
fxch st(1)
fxch st(2)
mov eax, dword [esp + 0x88]
and eax, 0x1000
mov dword [esp + 0x5c], eax
je 0x4c452c
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0xa4], eax
jmp 0x4c4545
fldz
jmp 0x4c44e2
fstp st(1)
fld dword [esp + 0x80]
lea ecx, [edi - 1]
fld dword [esp + 0x44]
xorps xmm3, xmm3
movss xmm2, dword [0x537fe8]
movaps xmm1, xmm3
movss dword [esp + 0x64], xmm1
fxch st(1)
jmp 0x4c44bb
fld dword [esp + 0x80]
xorps xmm3, xmm3
movss dword [esp + 0x64], xmm1
jmp 0x4c44bb
fld dword [esp + 0x80]
xorps xmm3, xmm3
movss xmm1, dword [esp + 0x64]
jmp 0x4c44bb
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x84]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], edx
test ecx, ecx
js 0x4c4a87
mov ecx, dword [esp + 0x88]
mov edx, ecx
and edx, 1
mov dword [esp + 0xd8], edx
mov edx, ecx
and edx, 2
and ecx, 0x10
mov dword [esp + 0xa8], edx
mov dword [esp + 0xcc], ecx
jmp 0x4c4580
fxch st(2)
fxch st(1)
cmp byte [esp + 0x53], 0
jne 0x4c46ef
mov ebx, dword [esp + 0x98]
mov edx, eax
mov ecx, dword [esp + 0x8c]
inc ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x98], ebx
cmp ebx, dword [esi + 0x14]
jae 0x4c46a5
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + ebx*4]
comiss xmm3, xmm0
movss dword [esp + 0x74], xmm0
jbe 0x4c45d1
mov dword [esp + 0x74], 0
jmp 0x4c45de
comiss xmm0, xmm2
jbe 0x4c45de
mov dword [esp + 0x74], 0x3f800000
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
jns 0x4c45f4
fadd dword [0x53809c]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fld dword [esp + 0x74]
fnstcw word [esp + 0x48]
movzx eax, word [esp + 0x48]
or eax, 0xc00
test byte [esi + 8], 0x10
mov dword [esp + 0x68], eax
fld st(0)
fmul st(2)
fldcw word [esp + 0x68]
fistp qword [esp + 0x68]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x8c], ebx
fldcw word [esp + 0x48]
je 0x4c469d
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x98]
fadd dword [eax + edx*4]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fxch st(4)
fcompi st(4)
fstp st(3)
jbe 0x4c465a
mov dword [esp + 0x4c], 0
jmp 0x4c466d
movss xmm0, dword [esp + 0x4c]
comiss xmm0, xmm2
jbe 0x4c466d
mov dword [esp + 0x4c], 0x3f800000
fld dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
fnstcw word [esp + 0x48]
movzx eax, word [esp + 0x48]
or eax, 0xc00
mov dword [esp + 0x68], eax
fmulp st(3)
fxch st(2)
fldcw word [esp + 0x68]
fistp qword [esp + 0x68]
mov eax, dword [esp + 0x68]
fldcw word [esp + 0x48]
jmp 0x4c46b2
fstp st(0)
mov eax, ebx
fstp st(0)
jmp 0x4c46b0
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x8c], ebx
fstp st(2)
add ebx, ecx
mov dword [esp + 0x48], eax
add edx, eax
shr ebx, 1
shr edx, 1
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x4c], edx
je 0x4c4710
cmp dword [esp + 0xa4], eax
ja 0x4c4710
mov edx, dword [esp + 0x98]
cmp edx, dword [esi + 0x58]
jae 0x4c4710
mov dword [esp + 0xa4], eax
mov dword [esp + 0x78], edx
jmp 0x4c4710
mov ecx, dword [esp + 0x74]
fstp st(2)
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
mov esi, ecx
lea ebx, [eax + ecx]
shr ebx, 1
mov edx, ebx
mov dword [esp + 0x68], ebx
imul edx, edi
add edx, edi
cmp eax, ecx
mov eax, edi
cmovae esi, ebx
mov ebx, dword [esp + 0x74]
imul eax, ecx
mov ecx, edx
imul esi, edi
cmp ebx, dword [esp + 0x54]
cmovae ecx, eax
mov eax, dword [esp + 0x68]
cmovae eax, ebx
imul eax, edi
mov dword [esp + 0x68], eax
mov eax, ebx
imul eax, edi
cmp ebx, dword [esp + 0x54]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xb0], eax
cmovae eax, edx
mov edx, dword [esp + 0x60]
cmp ecx, edx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x90]
cmovle edx, ecx
mov ecx, dword [esp + 0x58]
add edx, ecx
cmp esi, eax
mov dword [esp + 0x60], edx
cmovge eax, esi
add eax, ecx
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x90], eax
je 0x4c4880
mov ecx, dword [esp + 0x44]
mov esi, ecx
mov eax, dword [esp + 0x4c]
add eax, ecx
mov ebx, dword [esp + 0x4c]
shr eax, 1
mov edx, eax
mov dword [esp + 0x54], eax
imul edx, edi
add edx, edi
cmp ebx, ecx
cmovae esi, eax
mov eax, edi
imul eax, ecx
mov ecx, edx
imul esi, edi
cmp ebx, dword [esp + 0x44]
cmovae ecx, eax
mov eax, ebx
cmp eax, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
cmovae eax, ebx
imul eax, edi
mov dword [esp + 0x54], eax
mov eax, edi
imul eax, ebx
cmp ebx, dword [esp + 0x44]
mov ebx, dword [ebp + 0xc]
cmovae eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb4]
cmp ecx, eax
cmovle eax, ecx
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xb8]
cmp esi, eax
mov dword [esp + 0xb8], edx
cmovge eax, esi
mov esi, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0xb4], esi
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
add eax, edi
cmp eax, dword [esp + 0xc4]
jge 0x4c487c
mov edx, dword [esp + 0xd0]
mov dword [ebx + eax*4], edx
add eax, edi
cmp eax, dword [esp + 0xc4]
jl 0x4c4858
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x60]
mov eax, ecx
cmp ecx, edx
jge 0x4c4896
mov esi, dword [esp + 0xd4]
mov dword [ebx + eax*4], esi
add eax, edi
cmp eax, edx
jl 0x4c488d
cmp dword [esp + 0xd8], 0
je 0x4c48df
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x4c48cc
mov eax, ecx
cmp ecx, dword [esp + 0xc8]
jge 0x4c48cc
mov esi, dword [esp + 0x9c]
mov dword [ebx + eax*4], esi
add eax, edi
cmp eax, dword [esp + 0xc8]
jl 0x4c48ba
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, dword [eax + 0x34]
mov eax, 0
cmove esi, eax
mov dword [esp + 0x7c], esi
cmp dword [esp + 0xa8], 0
je 0x4c49e0
mov esi, dword [esp + 0xa0]
dec esi
test byte [esp + 0x88], 4
mov dword [esp + 0x54], esi
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
je 0x4c4961
fld dword [esp + 0x64]
fmul st(1)
movss dword [esp + 0x44], xmm1
call fcn.004f8990
cmp eax, esi
jg 0x4c495d
fld dword [esp + 0x44]
fdiv st(3)
mov ecx, eax
mov edx, dword [esp + 0x9c]
mov esi, eax
imul ecx, edi
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fld st(0)
fmul st(2)
add ecx, dword [esp + 0x58]
mov dword [ebx + ecx*4], edx
call fcn.004f8990
sub esi, dword [esp + 0xc0]
cmp eax, esi
jle 0x4c4928
fstp st(0)
fstp st(0)
jmp 0x4c49d8
movss xmm0, dword [esp + 0xbc]
fstp st(2)
fld st(0)
movss dword [esp + 0x44], xmm0
fld st(0)
fmul st(3)
call fcn.004f8990
mov edx, eax
xor esi, esi
mov eax, dword [esp + 0xa0]
dec eax
cmp edx, eax
jge 0x4c49d6
fld dword [esp + 0x44]
mov ecx, dword [esp + 0xc0]
add ecx, esi
cmp edx, ecx
jl 0x4c49b3
mov ecx, dword [esp + 0x9c]
mov eax, edx
imul eax, edi
mov esi, edx
add eax, dword [esp + 0x58]
mov dword [ebx + eax*4], ecx
fadd st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fld st(0)
fmul st(4)
call fcn.004f8990
mov edx, eax
mov eax, dword [esp + 0xa0]
dec eax
cmp edx, eax
jl 0x4c4991
fstp st(0)
fstp st(2)
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0xcc], 0
fstp st(1)
je 0x4c4a1d
mov esi, dword [esp + 0xc4]
mov eax, esi
cmp esi, dword [esp + 0x94]
jg 0x4c4a1d
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0xe4]
mov dword [ebx + eax*4], edx
add eax, edi
cmp eax, esi
jle 0x4c4a0c
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x90]
cmp edx, eax
jg 0x4c4a38
mov esi, dword [esp + 0x84]
mov dword [ebx + edx*4], esi
add edx, edi
cmp edx, eax
jle 0x4c4a2f
mov eax, dword [esp + 0xb0]
xorps xmm3, xmm3
xor byte [esp + 0x53], 1
sub ecx, 1
fld dword [esp + 0x80]
movss xmm1, dword [esp + 0x64]
movss xmm2, dword [0x537fe8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], ecx
fldz
jns 0x4c457c
fstp st(0)
fstp st(0)
jmp 0x4c4a8b
fstp st(2)
fstp st(1)
cmp dword [esp + 0x5c], 0
fstp st(0)
mov ebx, dword [ebp + 8]
je 0x4c4beb
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esi + 0x14]
jae 0x4c4beb
test byte [esp + 0x88], 0x10
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + ecx*4]
movss dword [esp + 0x68], xmm0
je 0x4c4ace
mov eax, dword [esi + 0x1c]
fld dword [eax + ecx*4]
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
fld dword [esi + 0x4c]
sub esp, 8
mov eax, dword [esi + 0x48]
fstp dword [esp + 4]
fld dword [esp + 0x70]
fstp dword [esp]
push ecx
push esi
call eax
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4c4beb
xor eax, eax
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4c4b11
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x94], eax
push dword [esi + 0x54]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0xf8]
push eax
mov eax, dword [ecx]
shr eax, 1
push eax
push dword [ecx + 4]
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [0x5460e4]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xfc]
sub edx, eax
sub edx, dword [esp + 0xa4]
mov dword [esp + 0xf4], edx
sub edx, ecx
mov dword [esp + 0xec], edx
cmp edx, eax
jge 0x4c4b7f
mov dword [esp + 0xec], eax
add eax, ecx
mov dword [esp + 0xf4], eax
mov edx, dword [esp + 0x78]
push 0x102
mov dword [esp + 0xec], 0
lea eax, [edx + edx]
cmp eax, edi
cmovge eax, edi
sub edi, eax
lea eax, [esp + 0xec]
sub edi, dword [0x5460e8]
mov dword [esp + 0xf4], edi
mov edi, dword [esp + 0x60]
push eax
mov eax, dword [edi]
shr eax, 1
push eax
push dword [edi + 4]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4c4bd8
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 0x4c4beb
call fcn.004a2a20
cmp dword [esi + 0x60], 0
je 0x4c4c63
mov eax, dword [esi + 0x84]
xor edi, edi
test eax, eax
je 0x4c4c07
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
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 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
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 0x4c4c63
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc