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

Disassembly:
push 0xffffffffffffffff
push 0x4804a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00413e40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x413ece
test ecx, ecx
jne 0x413ece
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [eax + 0x78]
lea edi, [ecx + 0x82]
push edx
push edi
lea ebx, [esi + 0x74]
push eax
push ecx
push ebx
mov dword [ebx], ecx
mov dword [esi + 0x78], eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call ebp
mov ecx, dword [esi + 0x80]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
sub eax, 0x3c
cmp ecx, eax
jle 0x413f0e
push 0xffffffffffffff88
push 0
push ebx
call edi
push 0
call ebp
cmp dword [esi + 0x7c], eax
jle 0x413f21
push 0
push 0xffffff7e
push ebx
call edi
mov ebp, dword [esp + 0x30]
push 0
push 0
push ebp
push ebx
push 0xc0000080
push 0
push 0
push 0
mov ecx, esi
call fcn.004725b3
test eax, eax
je 0x41419c
test ebp, ebp
jne 0x413f4d
xor eax, eax
jmp 0x413f50
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x1dc], ecx
mov ecx, dword [ebx]
neg eax
neg ecx
push eax
push ecx
push ebx
call edi
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
mov ebp, dword [ebx]
inc eax
push 3
inc ecx
push 3
push eax
push ecx
push edx
push ebp
lea edi, [esi + 0x64]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
mov ecx, edi
call fcn.00478902
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
dec eax
push 3
dec ecx
push 3
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
lea ebp, [esi + 0x6c]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
mov ecx, ebp
call fcn.00478902
test edi, edi
je 0x413fc7
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x1c]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [esi + 0x3c]
push eax
push ecx
push 0x4a6f10
mov ecx, edi
mov dword [esi + 0x1c4], 0xffffffff
call fcn.004698c0
push 0x333333
push ebx
mov ecx, edi
call fcn.0047ac99
push 1
push ebp
mov ecx, edi
call fcn.00478540
mov edx, dword [esi + 0x1d4]
mov ecx, edi
push edx
push ebx
call fcn.0047ac99
xor ebp, ebp
mov ecx, edi
push ebp
call fcn.00478443
push 1
mov ecx, edi
call fcn.004781c8
mov ecx, dword [0x4a6f38]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push 0x49c710
lea ecx, [esp + 0x38]
mov ebx, eax
call fcn.00475e41
mov eax, dword [esp + 0x34]
mov edx, dword [edi]
mov dword [esp + 0x28], ebp
mov ecx, dword [eax - 8]
push ecx
push eax
push 3
push 0x20
mov ecx, edi
call dword [edx + 0x5c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00475dd3
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ebp
lea ebx, [esi + 0x84]
mov eax, ecx
mov ebp, 5
cdq
idiv ebp
test edx, edx
jne 0x4140b3
mov eax, dword [esp + 0x38]
add eax, 0x18
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov dword [esp + 0x14], ecx
add ecx, 6
mov dword [ebx], ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffffe
mov dword [ebx + 4], ecx
mov edx, dword [ebx]
add edx, 0x14
mov ecx, 0x4a6f10
mov dword [ebx + 8], edx
mov eax, dword [ebx + 4]
add eax, 0x14
neg ecx
mov dword [ebx + 0xc], eax
mov edx, dword [0x4a6f14]
sbb ecx, ecx
and ecx, edx
test edi, edi
jne 0x4140f8
mov dword [esp + 0x10], edi
jmp 0x4140ff
mov edx, dword [edi + 4]
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x3c]
xor eax, eax
cmp ebp, 9
push 0xff00ff
setle al
dec eax
push 0x10
and eax, 0x10
push 0x10
push eax
mov eax, ebp
cdq
mov ebp, 0xa
idiv ebp
mov eax, dword [esp + 0x20]
shl edx, 4
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x50]
push 0x10
push 0x10
add edx, 8
push ecx
push edx
push eax
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
inc eax
add ebx, 0x10
inc ecx
cmp eax, 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
jl 0x414094
mov ecx, dword [esi + 0x1c]
push 0
push 0x14
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push pe_nt_image_headers32
push 4
push esi
mov dword [esi + 0x1e0], eax
call fcn.0046c350
mov edx, dword [esi + 0x60]
add esp, 0xc
mov ecx, esi
push edx
push 0
push 0
push 0
push 0
push 0
call fcn.00474b76
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10