Function at 0x4019d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487647
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x4acaa4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x34], vtable.CBrush.0
mov dword [esp + 0x240], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], vtable.CPen.0
fld qword [0x48fa18]
fld1
mov ebx, dword [ebp + 0xc]
mov byte [esp + 0x240], 2
fpatan
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
add eax, edx
mov dword [esp + 0x14], 0x3c
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x3c], eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov eax, ecx
sub eax, edx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
sub ecx, eax
mov dword [esi + 0x40], ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
sub eax, edi
lea edi, [esi + 0x8c]
lea eax, [eax + eax*2]
shl eax, 1
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x48], eax
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x44], eax
fmul qword [0x48fa10]
fst qword [esp + 0x44]
fld st(0)
fmul qword [0x48fa08]
fstp qword [esi + 0x58]
fld st(0)
fmul qword [0x48fa00]
fstp qword [esi + 0x60]
fild dword [esp + 0x14]
mov dword [esp + 0x10], 1
fmul st(1)
fld st(0)
fcos
fimul dword [esi + 0x48]
fiadd dword [esi + 0x3c]
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x401ad8
mov dword [esp + 0x10], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x10]
call fcn.0044c688
mov dword [edi - 4], eax
mov dword [esp + 0x10], 1
fild dword [esi + 0x40]
fxch st(1)
fsin
fimul dword [esi + 0x48]
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x401b13
mov dword [esp + 0x10], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x10]
call fcn.0044c688
mov dword [edi], eax
mov eax, dword [esp + 0x14]
add eax, 5
add edi, 8
cmp eax, 0x78
mov dword [esp + 0x14], eax
jle 0x401aab
mov dword [esp + 0x14], 0x78
lea edi, [esi + 0xf4]
fild dword [esp + 0x14]
mov dword [esp + 0x10], 1
fmul st(1)
fld st(0)
fcos
fimul dword [esi + 0x44]
fiadd dword [esi + 0x3c]
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x401b76
mov dword [esp + 0x10], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x10]
call fcn.0044c688
mov dword [edi - 4], eax
mov dword [esp + 0x10], 1
fild dword [esi + 0x40]
fxch st(1)
fsin
fimul dword [esi + 0x44]
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x401bb1
mov dword [esp + 0x10], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x10]
call fcn.0044c688
mov dword [edi], eax
mov eax, dword [esp + 0x14]
sub eax, 5
add edi, 8
cmp eax, 0x3c
mov dword [esp + 0x14], eax
jge 0x401b49
fstp st(0)
lea ecx, [esp + 0x84]
lea eax, [esi + 0x8c]
mov edx, 0x1a
mov edi, dword [eax - 4]
add eax, 8
mov dword [ecx - 4], edi
mov edi, dword [eax - 8]
dec edi
mov dword [ecx], edi
add ecx, 8
dec edx
jne 0x401bed
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x148]
inc ecx
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x148], eax
lea ecx, [esp + 0xec]
lea eax, [esi + 0xf4]
mov edx, 0xd
mov edi, dword [eax - 4]
add eax, 8
mov dword [ecx - 4], edi
mov edi, dword [eax - 8]
inc edi
mov dword [ecx], edi
add ecx, 8
dec edx
jne 0x401c32
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0x148]
dec eax
inc edi
mov dword [esp + 0x148], edi
lea edi, [esi + 0x208]
mov ecx, edi
mov dword [esp + 0xe8], eax
call fcn.0046b701
lea eax, [esi + 0x88]
push 1
push 0x1a
push eax
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
mov ecx, edi
call fcn.0046b6aa
mov edi, dword [ebx]
mov ecx, dword [ebx + 8]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
push 5
add edx, edi
mov dword [esi + 0x78], edx
mov ecx, dword [ebx + 8]
mov edi, dword [ebx]
mov edx, ecx
sub edx, edi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
sub ecx, edx
mov dword [esi + 0x80], ecx
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
imul ecx
mov eax, dword [ebx + 0xc]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sub eax, edx
mov dword [esi + 0x84], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x150]
sub eax, edi
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add edx, edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x7c], edx
call edi
push 0xf
mov dword [esi + 0x218], eax
call edi
push 0x10
mov dword [esi + 0x224], eax
call edi
push 0x14
mov dword [esi + 0x220], eax
call edi
push 0x12
mov dword [esi + 0x21c], eax
call edi
lea ecx, [esp + 0x34]
mov dword [esi + 0x228], eax
call fcn.0046b701
mov eax, dword [esi + 0x224]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x38]
call fcn.0046b6aa
mov edi, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.0046ad1a
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.0046ad1a
lea ecx, [esp + 0x2c]
call fcn.0046b701
mov eax, dword [esi + 0x220]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0046b6aa
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0046ad1a
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x50]
push edx
push eax
mov ecx, edi
call fcn.0046b212
lea ecx, [esp + 0x80]
push 0xe
push ecx
mov ecx, edi
call fcn.0046b3bc
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.0046ad1a
lea ecx, [esp + 0x2c]
call fcn.0046b701
mov eax, dword [esi + 0x21c]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0046b6aa
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0046ad1a
lea ecx, [esp + 0xe8]
push 0xd
push ecx
mov dword [esp + 0x18], eax
mov ecx, edi
call fcn.0046b3bc
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push edx
push eax
mov ecx, edi
call fcn.0046b25e
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0046ad1a
lea ecx, [esp + 0x2c]
call fcn.0046b701
mov eax, dword [esi + 0x228]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0046b6aa
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.0046ad1a
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], eax
call fcn.0046b701
mov eax, dword [esi + 0x218]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x38]
call fcn.0046b6aa
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.0046ad1a
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x88]
push 0x1a
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.0046ad1a
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x1c], eax
sub eax, ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x5a
fild dword [esp + 0x1c]
fmul qword [0x48f9f8]
fsubp st(1)
fstp qword [esp + 0x4c]
fild dword [esp + 0x14]
mov dword [esp + 0x18], 1
fmul qword [esp + 0x44]
fld st(0)
fcos
fstp qword [esp + 0x5c]
fild dword [esi + 0x48]
fst qword [esp + 0x1c]
fmul qword [esp + 0x5c]
fiadd dword [esi + 0x3c]
fstp qword [esp + 0x3c]
fsin
fstp qword [esp + 0x54]
fild dword [esi + 0x40]
fld qword [esp + 0x54]
fmul qword [esp + 0x1c]
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x401f7c
mov dword [esp + 0x18], 0
fld qword [esp + 0x3c]
fcomp qword [0x48f9d8]
mov dword [esp + 0x1c], 1
fnstsw ax
test ah, 1
jne 0x401f9d
mov dword [esp + 0x1c], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x18]
call fcn.0044c688
fld qword [esp + 0x3c]
fadd qword [0x48f9d0]
push eax
fisub dword [esp + 0x20]
call fcn.0044c688
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.0046b212
fld qword [esp + 0x5c]
fmul qword [esp + 0x4c]
mov dword [esp + 0x1c], 1
fiadd dword [esi + 0x3c]
fild dword [esi + 0x40]
fld qword [esp + 0x54]
fmul qword [esp + 0x4c]
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x402002
mov dword [esp + 0x1c], 0
fld st(1)
fcomp qword [0x48f9d8]
mov dword [esp + 0x18], 1
fnstsw ax
test ah, 1
jne 0x402021
mov dword [esp + 0x18], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x1c]
call fcn.0044c688
fadd qword [0x48f9d0]
push eax
fisub dword [esp + 0x1c]
call fcn.0044c688
push eax
mov ecx, edi
call fcn.0046b25e
mov eax, dword [esp + 0x14]
sub eax, 0xf
cmp eax, 0x3c
mov dword [esp + 0x14], eax
jg 0x401f2a
fld qword [esp + 0x44]
fmul qword [0x48f9f0]
fld st(0)
fcos
fstp qword [esp + 0x5c]
fild dword [esi + 0x48]
fst qword [esp + 0x1c]
fmul qword [esp + 0x5c]
fiadd dword [esi + 0x3c]
fstp qword [esp + 0x3c]
fsin
fstp qword [esp + 0x54]
fild dword [esi + 0x40]
fld qword [esp + 0x54]
fmul qword [esp + 0x1c]
mov dword [esp + 0x1c], 1
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x4020b0
mov dword [esp + 0x1c], 0
fld qword [esp + 0x3c]
fcomp qword [0x48f9d8]
mov dword [esp + 0x18], 1
fnstsw ax
test ah, 1
jne 0x4020d1
mov dword [esp + 0x18], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x1c]
call fcn.0044c688
fld qword [esp + 0x3c]
fadd qword [0x48f9d0]
push eax
fisub dword [esp + 0x1c]
call fcn.0044c688
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, edi
call fcn.0046b212
fld qword [esp + 0x5c]
fmul qword [esp + 0x4c]
mov dword [esp + 0x1c], 1
fiadd dword [esi + 0x3c]
fild dword [esi + 0x40]
fld qword [esp + 0x54]
fmul qword [esp + 0x4c]
fsubp st(1)
fcom qword [0x48f9d8]
fnstsw ax
test ah, 1
jne 0x402136
mov dword [esp + 0x1c], 0
fld st(1)
fcomp qword [0x48f9d8]
mov dword [esp + 0x18], 1
fnstsw ax
test ah, 1
jne 0x402155
mov dword [esp + 0x18], 0
fadd qword [0x48f9d0]
fisub dword [esp + 0x1c]
call fcn.0044c688
fadd qword [0x48f9d0]
push eax
fisub dword [esp + 0x1c]
call fcn.0044c688
push eax
mov ecx, edi
call fcn.0046b25e
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.0046ad1a
lea ecx, [esp + 0x2c]
call fcn.0046b701
mov eax, dword [esi + 0x220]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0046b6aa
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0046ad1a
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x78]
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, edi
call fcn.0046b212
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ecx
push edx
mov ecx, edi
call fcn.0046b25e
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
push eax
push ecx
mov ecx, edi
call fcn.0046b25e
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.0046ad1a
lea ecx, [esp + 0x2c]
call fcn.0046b701
mov eax, dword [esi + 0x21c]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0046b6aa
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0046ad1a
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.0046b25e
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x78]
push eax
push ecx
mov ecx, edi
call fcn.0046b25e
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.0046ad1a
mov ecx, dword [esi + 0x84]
mov eax, dword [esi + 0x7c]
sub ecx, eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
lea ecx, [esi + 0x210]
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x1c], edx
call fcn.0046b701
push str.Arial
push 0x20
push 0
push 0
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esi + 0x210]
call fcn.0046b6aa
mov edx, dword [edi]
lea eax, [esi + 0x210]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov ecx, dword [edi + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x200]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x200]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x4c], eax
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x84]
sar eax, 2
sub edx, eax
mov dword [esi + 0x50], edx
mov eax, dword [esi + 0x80]
sub eax, dword [esi + 0x78]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 0x228]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov eax, dword [esi + 0x224]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
push 0x1e
mov ecx, edi
call fcn.0046b293
mov eax, dword [esi + 0x4c]
cdq
and edx, 3
add eax, edx
mov edx, dword [edi]
mov ecx, eax
mov eax, dword [esi + 0x7c]
sar ecx, 2
sub eax, ecx
mov ecx, dword [esi + 0x26c]
mov ecx, dword [ecx - 8]
push ecx
mov ecx, dword [esi + 0x26c]
push ecx
push eax
mov eax, dword [esi + 0x54]
mov ecx, edi
push eax
call dword [edx + 0x5c]
mov eax, dword [edi]
push 0xff
mov ecx, edi
call dword [eax + 0x30]
push 0x18
mov ecx, edi
call fcn.0046b293
mov ecx, dword [esi + 0x264]
mov edx, dword [esi + 0x260]
mov eax, dword [esi + 0x248]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str._.lf
push ecx
call fcn.00460d6b
add esp, 0x14
lea eax, [esi + 0x270]
lea ecx, [esp + 0x28]
push eax
call fcn.00467711
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esi + 0xbc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xe8]
sub ecx, edx
mov edx, dword [ebx]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [edx - 8]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, edi
call dword [edx + 0x5c]
push 0x1a
mov ecx, edi
call fcn.0046b293
fld qword [esi + 0x258]
fst qword [esp + 0x44]
fcomp qword [0x48f9e8]
fnstsw ax
test ah, 0x41
jne 0x40247a
fld qword [esi + 0x258]
fmul qword [0x48f9e0]
call fcn.0044c688
lea edx, [esp + 0x6c]
push 0xa
push edx
push eax
call fcn.0044c738
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x28]
push eax
call fcn.0046755c
push 0x4ab278
lea ecx, [esp + 0x2c]
call fcn.004676d5
jmp 0x40249d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x248]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str._.lf
push ecx
call fcn.00460d6b
add esp, 0x14
lea eax, [esi + 0x270]
lea ecx, [esp + 0x28]
push eax
call fcn.00467711
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esi + 0xbc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x88]
sub ecx, edx
mov edx, dword [ebx + 8]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov ebx, dword [edx - 8]
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi]
push dword [esp + 0x1c]
push edx
push ecx
push eax
mov ecx, edi
call dword [ebx + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [esi + 0x218]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], 3
call fcn.0046b701
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x240], 4
call fcn.0046b701
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x238]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8