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

Disassembly:
push 0xffffffffffffffff
push 0x46d612
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebp
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.004640eb
xor ebp, ebp
lea ecx, [esp + 0x70]
push ebp
push 0x14000c
push ebp
mov dword [esp + 0x428], ebp
call fcn.0045c1d5
lea ecx, [esp + 0x70]
mov byte [esp + 0x41c], 1
call fcn.0045c33f
cmp eax, 2
jne 0x41bfd7
lea ecx, [esp + 0x70]
mov byte [esp + 0x41c], 0
call fcn.0045dc5b
lea ecx, [esp + 0xc]
mov dword [esp + 0x41c], 0xffffffff
call fcn.00464220
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
add esp, 0x418
ret
mov eax, dword [esp + 0xcc]
push ebx
push esi
lea ecx, [esp + 0x14]
mov eax, dword [eax + 0x10]
push eax
call fcn.004641a2
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.00464408
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
neg eax
sbb eax, eax
and eax, ebx
push eax
call esi
mov edx, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x14]
push 0xa
neg eax
sbb eax, eax
mov dword [esp + 0x74], ebx
and eax, edx
push eax
call esi
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x14]
push 1
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
xor ecx, ecx
neg eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x4c], 0x14
sbb eax, eax
mov dword [esp + 0x50], ecx
and eax, edx
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], ecx
push edx
push eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], 0x499694
mov dword [esp + 0x5c], ebp
call dword [sym.imp.GDI32.dll_StartDocA]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], vtable.CFont.0
push str.Arial
push 0x22
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x28
mov byte [esp + 0x45c], 2
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x2c]
call fcn.00464b25
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
push 0x18
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
mov ebx, edx
imul esi
sar edx, 3
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 0x1f
add edx, ecx
neg eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, 0x88888889
push 0
imul esi
add edx, esi
mov byte [esp + 0x16], 0
sar edx, 5
mov eax, edx
mov byte [esp + 0x17], 0
shr eax, 0x1f
add edx, eax
mov eax, 0x10624dd3
mov dword [esp + 0x3c], edx
imul esi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 0x40]
push edx
push 0
call fcn.00464b92
mov edx, dword [edi + 0x170]
xor esi, esi
push esi
push esi
push 0x1004
push edx
mov byte [esp + 0x434], 3
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x41c3f8
jmp 0x41c17a
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x11c]
push pe_nt_image_headers32
push eax
add edi, 0x154
push 0
push esi
mov ecx, edi
call fcn.0045c81c
lea ecx, [esp + 0x21c]
push pe_nt_image_headers32
push ecx
push 1
push esi
mov ecx, edi
call fcn.0045c81c
test ebp, ebp
jne 0x41c208
mov al, byte [esp + 0x12]
test al, al
je 0x41c1cf
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
mov byte [esp + 0x12], 1
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_StartPage]
mov al, byte [esp + 0x13]
test al, al
jne 0x41c208
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x17], 1
call fcn.00464336
mov dword [esp + 0x48], eax
mov al, byte [esp + 0x11c]
cmp al, 0x2d
jne 0x41c2d8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
neg edx
sbb edx, edx
lea edi, [esp + 0x31c]
and edx, eax
lea eax, [esp + 0x60]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x324]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
and eax, esi
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg ecx
sbb ecx, ecx
mov edi, eax
and ecx, esi
mov esi, dword [esp + 0x38]
imul esi, ebp
mov eax, ebp
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub esi, eax
add esi, edx
push esi
push ebx
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push esi
neg eax
sbb eax, eax
add ecx, ebx
and eax, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push edi
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x41c368
cmp al, 0x2e
je 0x41c368
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
neg edx
sbb edx, edx
mov ecx, dword [esp + 0x30]
and edx, eax
mov eax, dword [esp + 0x38]
imul eax, ebp
lea edi, [esp + 0x11c]
lea esi, [eax + ecx]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x44], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x11c]
push ecx
push eax
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x14]
neg esi
sbb esi, esi
lea edi, [esp + 0x21c]
and esi, ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x55555556
push ecx
lea ecx, [esp + 0x220]
push ecx
push edx
imul dword [esp + 0x7c]
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
cmp ebp, 0x39
jge 0x41c377
cmp byte [esp + 0x11c], 0x2e
jne 0x41c384
test ebp, ebp
je 0x41c384
mov byte [esp + 0x12], 1
xor ebp, ebp
jmp 0x41c385
inc ebp
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x31c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x1004
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x30]
inc esi
mov edx, dword [ecx + 0x170]
mov dword [esp + 0x30], esi
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, eax
jl 0x41c172
mov al, byte [esp + 0x12]
test al, al
je 0x41c3f8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41c421
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x14]
call fcn.004641d9
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x424], 4
call fcn.00464b7c
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x424], 5
call fcn.00464b7c
lea ecx, [esp + 0x78]
mov byte [esp + 0x424], 0
call fcn.0045dc5b
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.00464220
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x418
ret