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

Disassembly:
push 0xffffffffffffffff
push 0x491430
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0x58]
push 0x4978d6
push eax
call fcn.004737be
xor ebp, ebp
add esp, 8
cmp eax, ebp
sete al
test al, al
lea ecx, [esi + 0xd4]
je 0x41738c
push ebp
call fcn.00458457
jmp 0x41773e
push 5
call fcn.00458457
lea ecx, [esp + 0x64]
call fcn.0045734e
mov eax, vtable.CBitmap.0
mov dword [esp + 0x94], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], vtable.CBrush.0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], vtable.CFont.0
mov byte [esp + 0x94], 4
call fcn.0045258f
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4173f2
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov edi, dword [esp + 0xa4]
push 0x271a
mov byte [esp + 0x98], 5
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.004524e0
cmp eax, ebp
je 0x417453
push 0x271a
push eax
lea ecx, [esp + 0x20]
call fcn.00401f70
push 0xcb7028
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x40]
call fcn.00457b23
call fcn.004308b0
push 0x2761
mov byte [esp + 0x18], al
call fcn.0042fea0
mov ecx, dword [esp + 0x1c]
movzx edx, byte [esp + 0x18]
add esp, 4
push ecx
push ebp
push ebp
push ebp
push ebp
push edx
push ebp
push ebp
push ebp
push 0x190
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x38]
call fcn.00457b23
mov esi, dword [esp + 0x9c]
cmp esi, ebp
jne 0x4174b8
xor eax, eax
jmp 0x4174bb
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x68]
call fcn.0045785c
call fcn.0045240a
mov eax, dword [eax + 0xc]
mov ebp, dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x89
push eax
call ebp
push eax
lea ecx, [esp + 0x30]
call fcn.00457b23
call fcn.0045240a
mov eax, dword [eax + 0xc]
push 0x8a
push eax
call ebp
push eax
lea ecx, [esp + 0x48]
call fcn.00457b23
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.00457bc9
mov edx, dword [ebx]
mov ebp, dword [edx - 0xc]
mov dword [esp + 0x24], eax
mov eax, edx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ebp
or eax, ecx
jge 0x417560
push ebp
mov ecx, ebx
call fcn.00401950
mov eax, dword [ebx]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
push ebp
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x7c]
sub eax, edi
mov ebp, dword [esp + 0xa8]
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
push 0xcc0020
push 0
sub eax, edx
mov edx, dword [esi + 4]
push 0
sar eax, 1
sar edi, 1
sub edi, eax
mov eax, dword [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x8c]
push ecx
push edi
add ebp, 0xfffffff6
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x7c]
add ecx, eax
mov dword [esp + 0x5c], ebp
sub ebp, ecx
add eax, ebp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
add edx, edi
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x64], edi
call dword [sym.imp.USER32.dll_FillRect]
push 1
mov ecx, esi
call fcn.0045717f
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0xffffff
mov ecx, esi
call edx
mov ebx, dword [ebx]
add dword [esp + 0x58], 1
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x24
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx - 0xc]
push eax
push ebx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.0045717f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
push ecx
push edx
call fcn.00457bc9
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push edi
push ebp
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x417688
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x68]
push eax
push ecx
call fcn.00457bc9
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x94], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4176c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 3
mov dword [esp + 0x34], vtable.CFont.0
call fcn.00408cb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 2
mov dword [esp + 0x3c], vtable.CBrush.0
call fcn.00408cb0
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 1
mov dword [esp + 0x44], esi
call fcn.00408cb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 0
mov dword [esp + 0x2c], esi
call fcn.00408cb0
lea ecx, [esp + 0x64]
mov dword [esp + 0x94], 0xffffffff
call fcn.004578d6
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0x14