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

Disassembly:
push 0xffffffffffffffff
push 0x4462b8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x3c]
xor ebx, ebx
push ecx
mov dword [esp + 0x40], ebx
call fcn.0040b9f0
add esp, 8
test eax, eax
jne 0x40bf1c
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x7c
ret
mov edi, dword [sym.imp.USER32.dll_GetPropW]
push str.width
push esi
call edi
push str.height
push esi
mov dword [esp + 0x28], eax
call edi
push str.state
mov ebp, eax
push esi
mov dword [esp + 0x2c], ebp
call edi
push ebx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x24], eax
xor eax, eax
push ebx
push 0x30
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x40]
mov eax, ebp
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x3c]
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x64]
add ecx, 0xfffffffb
cmp eax, edx
jge 0x40bf89
mov eax, edx
mov edi, dword [esp + 0x20]
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x68]
jle 0x40bf9f
mov ecx, dword [esp + 0x38]
sub ecx, edi
sub ecx, 5
cmp dword [esp + 0x94], ebx
je 0x40bfb1
push 0x250
push ebp
push edi
jmp 0x40bfb8
push 0x251
push ebx
push ebx
push eax
push ecx
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
xor ebp, ebp
cmp dword [esp + 0x34], ebx
jle 0x40c038
fild dword [esp + 0x24]
fmul qword [0x450278]
fild dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40c036
fild dword [esp + 0x30]
fild dword [esp + 0x20]
fsubrp st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x40c038
cmp dword [esp + 0x30], edi
jge 0x40c038
cmp dword [esp + 0x1c], 1
je 0x40c050
push 1
push str.state
push esi
call dword [sym.imp.USER32.dll_SetPropW]
mov ebp, 0xd1
jmp 0x40c050
fstp st(0)
cmp dword [esp + 0x1c], ebx
je 0x40c050
push ebx
push str.state
push esi
call dword [sym.imp.USER32.dll_SetPropW]
mov ebp, 0xd0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bp
push 0x44d818
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40c220
mov ecx, edi
call fcn.0040c240
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x40c220
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40c09f
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40c0b8
mov dword [edi + 8], eax
xor eax, eax
push 0xffffffffffffffec
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
push esi
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 0xff
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ecx + 4]
push ebx
push ebx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, ebx
je 0x40c164
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0x78], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x74]
push str.User32.DLL
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.UpdateLayeredWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40c1e1
push 2
lea edx, [esp + 0x18]
push edx
push ebx
lea ecx, [esp + 0x54]
push ecx
push edi
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x70]
push ecx
push ebp
push esi
call eax
mov dword [esp + 0x88], 0xffffffff
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x7c
ret