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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x595e2c
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x8c]
call eax
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x34], eax
test eax, eax
je 0x408d65
mov eax, dword [0x6403e0]
test eax, eax
jne 0x40887f
push 0x438
call fcn.00551c81
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xc0], 0
test eax, eax
je 0x40886d
mov ecx, eax
call fcn.00485ee0
jmp 0x40886f
xor eax, eax
mov dword [esp + 0xc0], 0xffffffff
mov dword [0x6403e0], eax
mov esi, dword [eax + 0x100]
mov ecx, esi
mov edi, dword [edi + 0x138]
mov dword [esp + 0x20], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x64]
call eax
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x6c]
call edx
push dword [esp + 0x34]
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x408d48
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x408d3b
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc0], 1
push 0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x1c]
push esi
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa8], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x40895a
push 0
push 0
push 0
lea eax, [esp + 0xa0]
push eax
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x20]
mov edi, dword [edi]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp edi, eax
je 0x408a30
nop
mov esi, dword [edi]
mov dword [esp + 0x28], esi
test esi, esi
je 0x408980
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [esp + 0xc0], 2
mov ecx, esi
mov eax, dword [esi + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xb0]
call eax
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi + 0x60]
sub eax, dword [esi + 0x58]
mov edx, dword [esp + 0x48]
add eax, edx
mov ecx, dword [esi + 0x5c]
sub ecx, dword [esi + 0x54]
push 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1c]
push 0
sub esp, 0x10
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb0], edx
mov eax, esp
mov edx, dword [esi]
mov dword [esp + 0xb4], ecx
mov ecx, esi
movdqu xmm0, xmmword [esp + 0xac]
push dword [esp + 0x50]
movdqu xmmword [eax], xmm0
call dword [edx + 0x138]
mov byte [esp + 0xc0], 1
mov eax, dword [esi]
push esi
call dword [eax + 8]
add edi, 4
cmp edi, dword [esp + 0x14]
jne 0x408970
mov esi, dword [esp + 0x38]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
mov ecx, 0x16
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x14], ecx
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp edi, eax
je 0x408ada
mov esi, dword [edi]
mov dword [esp + 0x28], esi
test esi, esi
je 0x408a70
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esp + 0x1c]
mov dword [esp + 0xc0], 3
mov ecx, dword [esi + 0x104]
push eax
call fcn.0044d300
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ecx, [ecx + eax*2]
add ecx, 2
lea eax, [edx + 0xc]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408abc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esi]
push esi
call dword [eax + 8]
add edi, 4
cmp edi, dword [esp + 0x18]
jne 0x408a60
mov ecx, dword [esp + 0x14]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x408c5a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x408bee
mov ecx, dword [esp + 0x20]
mov dword [eax], 0x14
mov dword [eax + 0x10], 1
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
add eax, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ecx
cmp eax, ecx
je 0x408bde
mov edi, dword [eax]
mov dword [esp + 0x44], edi
test edi, edi
je 0x408b52
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [esp + 0x1c]
mov dword [esp + 0xc0], 4
mov ecx, dword [edi + 0x104]
push eax
call fcn.0044d300
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.00559410
mov eax, dword [esp + 0x20]
add esi, 0xfffffff0
add eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408bb4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x4c]
jne 0x408b42
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x94]
push 1
push edx
mov eax, 0xf
mov dword [esp + 0x5c], 0
mov word [esp + 0x58], ax
lea edx, [esp + 0x58]
mov eax, dword [ecx]
xorps xmm0, xmm0
push edx
movq qword [esp + 0xa4], xmm0
push ecx
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x70], 1
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], esi
call dword [eax + 0x1c]
test eax, eax
jns 0x408c5a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0x5b463c
push eax
push 0x5abc78
push 1
push 0
push 0x5abc08
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x30]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xc0], 5
test ecx, ecx
je 0x408cfe
lea eax, [esp + 0x7c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x64]
mov edi, dword [esp + 0x24]
push dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x12c]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x130]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x30]
jmp 0x408d02
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x2c], 0x5b463c
test ecx, ecx
je 0x408d27
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x30], 0
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x408d4c
mov edi, dword [esp + 0x24]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x408d4c
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x8c]
call eax
push dword [esp + 0x34]
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 0x80004005
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 8