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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x45d777
mov esi, dword [edi]
push 0
push 0
push 0x111f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, al
mov ecx, eax
or edx, 0xffffc800
shr ecx, 0x10
shl edx, 0x10
and eax, 0xff00
movzx ecx, cl
or edx, ecx
mov dword [esp + 0x84], ebx
or edx, eax
lea eax, [esp + 0x84]
push eax
push 1
push 0x1104
push esi
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x14]
xorps xmm0, xmm0
mov esi, dword [0x54a0e4]
sub ecx, esi
mov eax, dword [esp + 0x84]
mov edx, dword [0x54a0e0]
add eax, ecx
mov dword [esp + 0x38], eax
add eax, 0xfffffffd
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x20]
sub eax, dword [edi + 0x18]
sub eax, edx
mov dword [esp + 0x34], edx
cdq
sub eax, edx
mov dword [esp + 0x1c], esi
sar eax, 1
add eax, dword [edi + 0x18]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0x113e
push dword [0x545fe0]
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
sbb eax, eax
and eax, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.0045d790
test al, al
je 0x45d466
mov ebx, dword [esp + 0x40]
jmp 0x45d53e
lea eax, [esp + 0x48]
mov dword [esp + 0x80], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x4c], 2
push 0
push 0x113e
push dword [0x545fe0]
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x60]
cmp ebx, 0x16
jne 0x45d502
mov ecx, dword [esp + 0x3c]
call fcn.0045ed00
cmp eax, ebx
mov ecx, 0x17
cmove eax, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0x113f
push dword [0x545fe0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x60]
cmp ebx, 0x17
jne 0x45d51e
lea ecx, [esp + 0x14]
call fcn.0045d790
test al, al
je 0x45d51a
mov ebx, dword [esp + 0x40]
jmp 0x45d53e
mov ebx, dword [esp + 0x60]
mov ecx, dword [0x549278]
test ebx, ebx
js 0x45d53b
mov eax, dword [0x54927c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x45d53b
mov ebx, dword [ecx + ebx*4]
jmp 0x45d53e
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x45d6a1
push 2
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [esp + 0x44]
je 0x45d596
test eax, eax
jne 0x45d60d
push dword [esp + 0x28]
push 3
push 0x110a
push dword [0x545fe0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x110a
push dword [0x545fe0]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jne 0x45d609
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x54a114
call ebx
lea eax, [esp + 0x44]
push eax
call fcn.00435aa0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, eax
push 0x54a114
call edi
push 0x54a14c
call ebx
lea eax, [esi + 0x20]
push eax
call fcn.00435a80
push 0x54a14c
mov esi, eax
call edi
cmp dword [esi + 0x1c], 0
mov ebx, dword [esp + 0x14]
je 0x45d605
mov ecx, dword [0x549288]
mov eax, dword [0x54928c]
cmp ebx, ecx
je 0x45d5f9
cmp ebx, eax
je 0x45d5f9
mov byte [esp + 0x13], 1
jmp 0x45d605
cmp dword [0x545ecc], 0x60
mov ebx, eax
cmovg ebx, ecx
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push 3
push 0
push 0
push dword [0x54a0e0]
push dword [0x54a0e4]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x48]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp byte [esp + 0x13], 0
je 0x45d6a1
mov eax, dword [0x545ecc]
test eax, eax
jne 0x45d646
lea edx, [eax + 0xc]
jmp 0x45d665
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x537280]
mulsd xmm0, qword [0x537210]
call fcn.00507b20
mov edx, eax
mov ebx, dword [esp + 0x38]
mov esi, edx
push 3
push 0
push 0
push edx
push edx
push dword [0x54916c]
lea eax, [ebx - 3]
mov ecx, ebx
sub esi, eax
sub ecx, edx
mov eax, dword [edi + 0x20]
add ecx, dword [0x54a0e4]
sub eax, edx
push eax
push ecx
push dword [edi + 0x10]
add esi, ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov byte [esp + 0x13], 0
jmp 0x45d6a5
mov ebx, dword [esp + 0x38]
mov ecx, dword [0x5484d0]
push 0
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [edi + 0x30]
cmp ecx, eax
je 0x45d6c1
cmp ecx, 0xff
jne 0x45d71d
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push dword [edi + 0x10]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x40], 0
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
push dword [esp + 0x34]
lea eax, [ebx - 3]
push esi
push dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
push eax
push esi
push edi
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
je 0x45d777
mov eax, dword [0x545ecc]
test eax, eax
jne 0x45d732
lea ecx, [eax + 0xc]
jmp 0x45d751
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x537280]
mulsd xmm0, qword [0x537210]
call fcn.00507b20
mov ecx, eax
mov eax, dword [edi + 0x20]
sub ebx, ecx
add ebx, dword [0x54a0e4]
sub eax, ecx
push 3
push 0
push 0
push ecx
push ecx
push dword [0x54916c]
push eax
push ebx
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret