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

Disassembly:
push 0xffffffffffffffff
push 0x469056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebp
push esi
mov esi, dword [esp + 0x15c]
push edi
xor edi, edi
cmp esi, edi
mov ebp, ecx
mov dword [esp + 0x28], ebp
je 0x4057c4
cmp dword [esp + 0x158], edi
je 0x4057c4
cmp dword [esp + 0x15c], edi
jle 0x4057c4
fld qword [esp + 0x180]
fadd qword [0x46e780]
call fcn.00458858
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
lea edx, [esp + 0x78]
mov eax, esi
fstp qword [esp + 0x180]
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405078
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14c], edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
push 0x3c
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [esp + 0x16c]
mov ebx, dword [esp + 0x168]
mov eax, edi
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 4
mov dword [esp + 0x40], edi
jge 0x4050d9
xor eax, eax
mov dword [esp + 0x44], eax
jmp 0x4050e6
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x44], eax
xor eax, eax
mov cl, byte [esp + 0x174]
mov edx, dword [esp + 0x170]
mov byte [esp + 0x54], cl
mov cl, byte [ebp + 4]
neg edx
sbb edx, edx
mov byte [esp + 0x57], cl
mov cl, byte [0x499374]
and edx, 0x2bc
test cl, 1
mov dword [esp + 0x50], edx
jne 0x40514d
mov edx, dword [0x499374]
or edx, 1
push 0x46d0c0
mov dword [0x499374], edx
mov dword [0x499344], 0x46e578
mov dword [0x499348], eax
mov dword [0x49934c], eax
mov dword [0x499350], eax
call fcn.004589f2
add esp, 4
lea edx, [esp + 0x7c]
push edx
mov eax, edx
push eax
mov ecx, 0x499344
call fcn.00402a90
mov ebp, dword [esp + 0x15c]
push ebp
lea ecx, [esp + 0x34]
call fcn.00402200
lea eax, [esp + 0x7c]
mov byte [esp + 0x14c], 1
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405180
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18c]
test eax, eax
je 0x405221
cmp byte [esp + 0x7c], 0x40
jne 0x4051bf
push esi
lea ecx, [esp + 0x81]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.00457990
add esp, 0xc
mov byte [esp + esi + 0x7c], 0
xor eax, eax
mov al, byte [ebp + 1]
xor ecx, ecx
mov cl, byte [ebp]
push eax
push ecx
call fcn.00401eb0
add esp, 8
test eax, eax
je 0x405221
fld qword [esp + 0x184]
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x158]
push eax
sub esp, 8
fstp qword [esp]
push edi
push ebx
call fcn.00401ee0
push esi
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x9d]
push edx
call fcn.00457990
mov byte [esp + 0xa0], 0x40
add esp, 0x24
mov byte [esp + esi + 0x7d], 0
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405228
sub eax, edx
cmp eax, 2
jl 0x405245
cmp byte [esp + 0x7c], 0x40
jne 0x405245
mov dword [esp + 0x48], 0xa8c
fld qword [esp + 0x184]
fmul qword [0x46e778]
fiadd dword [esp + 0x48]
fadd qword [0x46e780]
call fcn.00458858
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jge 0x405273
add ebx, 0xe10
jmp 0x405281
cmp ebx, 0xe10
jl 0x405285
sub ebx, 0xe10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
xor eax, eax
nop
mov cl, byte [esp + eax + 0x7c]
mov byte [esp + eax + 0x5c], cl
inc eax
test cl, cl
jne 0x405290
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
lea eax, [esp + 0x40]
push eax
call esi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
jne 0x4052ed
mov cl, byte [eax + 0x499354]
mov byte [esp + eax + 0x5c], cl
inc eax
test cl, cl
jne 0x4052b4
lea ecx, [esp + 0x40]
push ecx
call esi
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4052e9
lea ecx, [esp + 0x30]
call fcn.00401490
lea ecx, [esp + 0x24]
call fcn.00402b40
jmp 0x4057c3
mov ebp, dword [esp + 0x24]
mov eax, dword [0x499324]
test eax, eax
je 0x405408
push 0x18
call fcn.004588d2
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
je 0x4052d2
push 0x60
mov dword [edi], 0
call fcn.004588d2
add esp, 4
test eax, eax
je 0x40532d
mov ecx, eax
call fcn.00403f50
mov esi, eax
jmp 0x40532f
xor esi, esi
mov edx, dword [esp + 0x154]
mov eax, dword [esp + 0x158]
mov dword [edi + 4], esi
mov edi, dword [esp + 0x160]
add edi, edi
lea ecx, [edi + 1]
lea ebp, [esi + 8]
push ecx
mov ecx, ebp
mov dword [esi], edx
mov dword [esi + 4], eax
call fcn.00404970
xor eax, eax
test edi, edi
jle 0x40538a
mov edx, 0x10
cmp dword [ebp + 0x18], edx
jb 0x405371
mov ecx, dword [ebp + 4]
jmp 0x405374
lea ecx, [ebp + 4]
mov ebx, dword [esp + 0x15c]
mov bl, byte [eax + ebx]
mov byte [ecx + eax], bl
inc eax
cmp eax, edi
jl 0x405367
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x160]
lea eax, [esp + 0x5c]
mov dword [esi + 0x24], edx
lea edx, [eax + 1]
jmp 0x4053a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053a0
sub eax, edx
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esi + 0x28]
call fcn.00404600
mov ecx, dword [esp + 0x168]
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x170]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x174]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0x178]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], edx
mov byte [esi + 0x5c], 0
mov ecx, dword [0x499324]
lea eax, [esp + 0x28]
push eax
add ecx, 0x18
call fcn.00404fb0
jmp 0x40578c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov eax, dword [ecx]
push eax
push esi
mov dword [esp + 0x40], esi
call edi
push ebp
push esi
mov dword [esp + 0x30], eax
call edi
mov ebp, dword [esp + 0x178]
push ebp
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x18
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x405477
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x180]
cmp eax, 6
ja case.0x405487.3
jmp dword [eax*4 + 0x4057e0]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
push eax
mov eax, dword [esp + 0x158]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
jmp case.0x405487.3
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
mov dword [esp + 0x20], eax
call edi
mov ecx, dword [esp + 0x17c]
push ecx
push 1
mov ebp, eax
push 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x18], eax
call edi
mov ebx, eax
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.GDI32.dll_BeginPath]
mov edx, dword [esp + 0x160]
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
push edx
mov edx, dword [esp + 0x158]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
push esi
call dword [sym.imp.GDI32.dll_EndPath]
push esi
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
push ebx
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x1c]
call fcn.00402b40
lea ecx, [esp + 0x10]
call fcn.00402b40
lea ecx, [esp + 0x14]
call fcn.00402b40
lea ecx, [esp + 0x18]
jmp 0x405730
push ebp
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
mov dword [esp + 0x24], eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x17c]
push eax
push 2
push 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x1c], eax
call edi
mov ebx, eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_BeginPath]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
push eax
push ecx
jmp 0x4056f4
push ebp
push 0
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
push eax
push esi
mov dword [esp + 0x24], eax
call edi
push ebp
push 1
mov ebx, eax
push 0
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x1c], eax
call edi
mov ebp, eax
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_BeginPath]
mov edx, dword [esp + 0x160]
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
push edx
mov edx, dword [esp + 0x158]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
push esi
call dword [sym.imp.GDI32.dll_EndPath]
push esi
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
push ebp
push esi
call edi
push ebx
jmp 0x40570e
push 0xffffff
push 0
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
push eax
push esi
mov dword [esp + 0x24], eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x17c]
push eax
push 1
push 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x1c], eax
call edi
mov ebx, eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_BeginPath]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
push eax
push ecx
jmp 0x4056f4
push ebp
push 0
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
push eax
push esi
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x17c]
push edx
push 1
mov ebp, eax
push 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x1c], eax
call edi
mov ebx, eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_BeginPath]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
push eax
mov eax, dword [esp + 0x158]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
push esi
call dword [sym.imp.GDI32.dll_EndPath]
push esi
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
push ebx
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x18]
call fcn.00402b40
lea ecx, [esp + 0x14]
call fcn.00402b40
lea ecx, [esp + 0x10]
call fcn.00402b40
lea ecx, [esp + 0x1c]
call fcn.00402b40
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x405749
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [esp + 0x34]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call edi
mov edx, dword [esp + 0x28]
push edx
push esi
call edi
lea ecx, [esp + 0x20]
call fcn.00402b40
lea ecx, [esp + 0x28]
call fcn.00402b40
lea ecx, [esp + 0x38]
call fcn.00402b20
mov eax, dword [esp + 0x30]
mov edx, dword [0x486078]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4057b4
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4057b4
push esi
call fcn.0045850f
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4057c3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x140
ret 0x3c