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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a47a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6101c0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x6101c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esi]
mov dword [esp + 0x28], edi
call dword [eax + 0x70]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ebx
test edi, edi
je 0x418ea3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418ede
jmp 0x418ec6
cmp dword [esp + 0x14], ebx
je 0x419246
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004574ac
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edi
test edi, edi
je 0x419246
test eax, eax
je 0x419246
mov dword [esp + 0x38], 1
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x34], ebx
call dword [eax + 0x6c]
mov ecx, eax
test ecx, ecx
je 0x418efb
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov dword [esp + 0x40], eax
test al, 0x10
je 0x4191e3
test al, 0x20
jne 0x4191e3
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.0040e5d0
xor eax, eax
mov dword [esp + 0x80], 0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x418f40
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jg 0x418f54
mov dword [esp + 0x30], 0xffffffff
jmp 0x418f7d
push 0xa
push eax
call fcn.0057fd66
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x18]
test esi, esi
jne 0x418f73
mov dword [esp + 0x30], 0xffffffff
jmp 0x418f7d
sub esi, eax
sar esi, 1
mov dword [esp + 0x30], esi
jns 0x418fa1
add eax, 0xfffffff0
push eax
call fcn.0040dfb0
add esp, 4
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
mov byte [esp + 0x80], 1
or ebx, 1
jmp 0x418fbe
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.00415e10
mov dword [esp + 0x80], 2
or ebx, 2
mov eax, dword [eax]
sub eax, 0x10
mov dword [esp + 0x24], ebx
push eax
call fcn.0040dfb0
add esp, 4
lea esi, [eax + 0x10]
mov dword [esp + 0x48], esi
mov dword [esp + 0x80], 4
test bl, 2
je 0x41900c
mov edx, dword [esp + 0x50]
and ebx, 0xfffffffd
add edx, 0xfffffff0
mov dword [esp + 0x24], ebx
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41900c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x80], 5
test bl, 1
je 0x41903a
and ebx, 0xfffffffe
lea edx, [edi - 0x10]
mov dword [esp + 0x24], ebx
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41903a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x58]
push eax
push dword [esi - 0xc]
mov eax, dword [esp + 0x30]
push esi
push dword [eax + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x58], ecx
mov eax, dword [esp + 0x30]
cmovg ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
test eax, eax
js 0x4190dc
inc eax
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00419880
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 6
call fcn.0040e020
mov byte [esp + 0x80], 5
or ecx, 0xffffffff
mov edx, dword [esp + 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4190b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x80], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f40
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x418f40
add esi, 0xfffffff0
mov byte [esp + 0x80], 0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419100
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
push 0
inc eax
push eax
push 0
push 0
lea eax, [esp + 0x70]
push eax
movdqu xmmword [esp + 0x74], xmm0
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
or ecx, 0x400
push ecx
lea ecx, [esp + 0x64]
push ecx
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [eax + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41917f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x419197
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esi, esi
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [esp + 0x1c]
add eax, eax
add dword [esp + 0x14], esi
add ebx, eax
mov eax, dword [ecx]
call dword [eax + 0x68]
mov eax, dword [eax + 8]
cmp eax, 0x384
je 0x4191cd
cmp eax, 0xfffffc7c
jne 0x419220
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ebx, dword [esp + 0x14]
shl eax, 2
add esi, eax
jmp 0x419224
mov ebx, dword [esp + 0x14]
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4191f0
sub ecx, edx
lea eax, [esp + 0x48]
push eax
sar ecx, 1
push ecx
push ebx
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
jmp 0x419187
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x38], 0
je 0x41923b
mov eax, dword [esp + 0x44]
push dword [edi + 4]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
mov dword [eax + 4], esi
jmp 0x419270
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x10c]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x108]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057e445
mov esp, ebp
pop ebp
ret 0xc