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

Disassembly:
push 0xffffffffffffffff
push 0x477c34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00466426
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x8c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x14c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0x4830f4
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0x48
and eax, edi
push 0x5a
push eax
mov byte [esp + 0x150], 1
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x9c], eax
mov edi, 0x493204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
lea edx, [esp + 0xb8]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xb0], 0
shr ecx, 2
mov byte [esp + 0xb1], 0
mov byte [esp + 0xb2], 0
mov byte [esp + 0xb3], 0
mov byte [esp + 0xb4], 4
mov byte [esp + 0xb5], 0
mov byte [esp + 0xb6], 0
mov byte [esp + 0xb7], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x3c]
call fcn.004666ce
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, esi
mov ebx, dword [esp + 0x1c]
push eax
neg ecx
sbb ecx, ecx
and ecx, ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x7c]
neg eax
sbb eax, eax
push edx
and eax, ecx
push 7
push 0x495dc8
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x98]
lea edx, [edx + ecx + 0xa]
mov ecx, dword [esp + 0x90]
sub edi, eax
mov dword [esp + 0x2c], eax
lea esi, [ecx + eax + 2]
mov ecx, dword [esp + 0x94]
lea eax, [edi - 2]
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x5c], eax
sub eax, esi
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x58], ecx
xor esi, esi
sub ecx, edx
cmp eax, esi
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x60], ecx
jne 0x41efb4
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x78], eax
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x60]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x64]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp + 0x78]
push eax
push edx
mov dword [ebp + 0x7c], eax
call ebx
cmp dword [ebp + 0x78], esi
jne 0x41efb4
mov dword [esp + 0x38], 0x480444
mov byte [esp + 0x144], 2
jmp 0x41f7f2
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp + 0x64]
cmp ecx, esi
jle 0x41f0c2
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov ecx, eax
test ecx, ecx
jge 0x41efeb
xor ecx, ecx
jmp 0x41eff8
cmp ecx, 0xff
jle 0x41eff8
mov ecx, 0xff
test eax, eax
mov dword [esp + 0x10], eax
jge 0x41f00a
mov dword [esp + 0x10], 0
jmp 0x41f019
cmp eax, 0xff
jle 0x41f019
mov dword [esp + 0x10], 0xff
test eax, eax
jge 0x41f021
xor eax, eax
jmp 0x41f02d
cmp eax, 0xff
jle 0x41f02d
mov eax, 0xff
xor edx, edx
and ecx, 0xff
mov dh, al
mov dl, byte [esp + 0x10]
shl edx, 8
or edx, ecx
lea ecx, [esp + 0x50]
push edx
push 1
push 0
call fcn.0046673b
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [ebp + 0x78]
push eax
call ebx
mov ecx, dword [ebp + 0x78]
push 0
push esi
push 0
push ecx
mov edi, eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x78]
push esi
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp + 0x78]
push edi
push ecx
call ebx
mov dword [esp + 0x50], 0x480444
lea ecx, [esp + 0x50]
mov byte [esp + 0x144], 3
call fcn.00466725
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x40
mov byte [esp + 0x144], 1
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x64]
cmp esi, ecx
jl 0x41efda
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x495dc0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0xd8]
neg edx
sbb edx, edx
xor eax, eax
and edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x54]
mov edi, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edi
push ecx
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [ebp + 0x50]
dec eax
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
push 7
call esi
mov edx, dword [ebp + 0x78]
push eax
push edx
call ebx
mov edi, eax
push 4
mov dword [esp + 0x44], edi
call esi
push eax
mov eax, dword [ebp + 0x78]
push eax
call ebx
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
push ecx
mov esi, eax
mov eax, dword [ebp + 0x78]
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [ebp + 0x78]
push esi
push ecx
call ebx
mov edx, dword [ebp + 0x78]
push edi
push edx
call ebx
lea eax, [esp + 0x18]
neg eax
mov esi, dword [esp + 0x1c]
push 6
sbb eax, eax
and eax, esi
mov esi, dword [sym.imp.GDI32.dll_SetTextAlign]
push eax
call esi
push 0x707070
xor edi, edi
push 1
push edi
lea ecx, [esp + 0x64]
call fcn.0046673b
push 0x404040
push 1
push edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x150], 4
call fcn.0046673b
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], 0x480424
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 2
and eax, edx
mov byte [esp + 0x148], 6
push eax
call esi
mov eax, dword [ebp + 0x48]
cmp dword [eax + 0x8014], edi
nop
nop
nop
nop
nop
nop
fldlg2
fld qword [0x47c130]
fyl2x
fst qword [esp + 0x48]
call fcn.0043c808
cmp eax, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edi
jl 0x41f3ff
jmp 0x41f22e
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
fild dword [esp + 0x10]
mov dword [esp + 0x14], 1
fstp qword [esp + 0x84]
fld qword [0x47ca58]
fld qword [esp + 0x84]
call fcn.0043ce40
fstp qword [esp + 0x40]
fild dword [esp + 0x14]
mov edi, dword [ebp + 0x64]
mov dword [esp + 0x34], edi
fmul qword [esp + 0x40]
fldlg2
fxch st(1)
fyl2x
fimul dword [esp + 0x34]
fdiv qword [esp + 0x48]
call fcn.0043c808
mov esi, eax
cmp esi, edi
jge 0x41f2c5
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x78]
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call ebx
mov edx, dword [ebp + 0x64]
mov edi, eax
mov eax, dword [ebp + 0x78]
sub edx, esi
push 0
push edx
push 0
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x78]
sub ecx, esi
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp + 0x78]
push edi
push ecx
call ebx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x41f257
fild dword [ebp + 0x64]
fmul qword [esp + 0x84]
fdiv qword [esp + 0x48]
call fcn.0043c808
mov edx, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0xe0]
push 0x49481c
push ecx
call fcn.0043c57a
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x28]
add esp, 0x10
lea edi, [esp + 0xd8]
neg esi
sbb esi, esi
or ecx, 0xffffffff
and esi, eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xd8]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 0x5c]
push edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x50]
sar eax, 1
sub ecx, eax
sub edx, 5
sub ecx, ebx
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov edx, dword [ebp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [ebp + 0x5c]
sub ecx, ebx
sub edx, 3
push ecx
push edx
push eax
call esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
sub ecx, ebx
and eax, edx
mov edx, dword [ebp + 0x50]
sub edx, 4
push ecx
push edx
push eax
call esi
mov edi, dword [esp + 0x5c]
lea eax, [esp + 0x58]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [ebp + 0x78]
push eax
call edi
mov esi, eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x78]
sub ecx, ebx
push 0
push ecx
push 0
push edx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x78]
sub eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x78]
push esi
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x41f228
mov esi, dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 6
and eax, edi
push eax
call esi
mov ecx, dword [ebp + 0x60]
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
js 0x41f4fe
xor esi, esi
mov eax, esi
mov ecx, 0x3c
cdq
idiv ecx
mov eax, ebx
push edx
cdq
sub eax, edx
lea edx, [esp + 0xdc]
sar eax, 1
push eax
push 0x4945dc
push edx
call fcn.0043c57a
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
add esp, 0x10
lea edi, [esp + 0xd8]
neg edx
sbb edx, edx
or ecx, 0xffffffff
and edx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xd8]
push ecx
mov ecx, dword [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x58]
add ecx, 3
sub eax, esi
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
neg eax
sbb eax, eax
add ecx, 2
and eax, edx
mov edx, dword [ebp + 0x58]
push 0
sub edx, esi
push ecx
push edx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
add ecx, 3
and eax, edx
mov edx, dword [ebp + 0x58]
sub edx, esi
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp + 0x60]
mov eax, 0x88888889
imul ecx
add edx, ecx
inc ebx
sar edx, 4
mov eax, edx
add esi, 0x1e
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jle 0x41f432
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + 0xa4]
mov edx, dword [eax + 0xa0]
push ecx
push edx
call fcn.0041ec30
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
mov eax, dword [ebp + 0x48]
xor ebx, ebx
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x60]
test eax, eax
mov dword [esp + 0x2c], edx
jle 0x41f64b
fldlg2
fld qword [0x47c130]
fyl2x
fstp qword [esp + 0x48]
jmp 0x41f54e
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + edx*4 + 0x10]
sar eax, 0xa
mov dword [esp + 0x14], eax
jns 0x41f566
mov dword [esp + 0x14], 0
mov ecx, dword [ecx + edx*4 + 0x4014]
sar ecx, 0xa
mov dword [esp + 0x10], ecx
jns 0x41f57e
mov dword [esp + 0x10], 0
fild dword [ebp + 0x64]
fldlg2
fild dword [esp + 0x14]
fyl2x
fdiv qword [esp + 0x48]
fmul st(1)
call fcn.0043c808
fldlg2
mov esi, eax
fild dword [esp + 0x10]
fyl2x
fdiv qword [esp + 0x48]
fmul st(1)
call fcn.0043c808
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x10]
fstp st(0)
je 0x41f608
test eax, eax
je 0x41f5f9
mov ecx, dword [esp + 0x30]
cmp esi, edi
push ecx
push 0
jge 0x41f5de
push esi
push ebx
mov ecx, ebp
call fcn.0041ecc0
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0xa4]
push eax
push esi
jmp 0x41f618
push edi
push ebx
mov ecx, ebp
call fcn.0041ecc0
cmp esi, edi
je 0x41f621
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0xa0]
push eax
push edi
push esi
jmp 0x41f619
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx + 0xa0]
push edx
push 0
push esi
jmp 0x41f619
test eax, eax
je 0x41f621
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + 0xa4]
push ecx
push 0
push edi
push ebx
mov ecx, ebp
call fcn.0041ecc0
mov edx, dword [esp + 0x2c]
add edx, 0x7ff
and edx, 0x800007ff
jns 0x41f63b
dec edx
or edx, 0xfffff800
inc edx
mov eax, dword [ebp + 0x60]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], edx
jl 0x41f54a
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x78]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x41f523
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
push edx
and eax, ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x78]
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ebp + 0x64]
push 0
push ecx
mov ecx, dword [ebp + 0x60]
push edx
mov edx, dword [ebp + 0x54]
push ecx
mov ecx, dword [ebp + 0x50]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 2
push 0
lea ecx, [esp + 0x6c]
call fcn.0046673b
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x60]
neg eax
mov esi, dword [esp + 0x1c]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
and ecx, esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
dec ecx
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x58]
mov esi, dword [sym.imp.GDI32.dll_LineTo]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
inc ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov ecx, dword [ebp + 0x58]
and eax, edx
mov edx, dword [ebp + 0x5c]
inc edx
inc ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x5c]
inc edx
dec ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
dec ecx
push edx
push ecx
push eax
call esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
call edi
mov esi, 0x480444
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 7
call fcn.00466725
mov dword [esp + 0x74], esi
lea ecx, [esp + 0x74]
mov byte [esp + 0x144], 8
call fcn.00466725
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x144], 9
call fcn.00466725
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x144], 0xa
call fcn.00466725
mov dword [esp + 0x38], esi
mov byte [esp + 0x144], 0xb
lea ecx, [esp + 0x38]
call fcn.00466725
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.00466498
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret