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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56696e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp eax, 1
push edi
mov ebx, ecx
jne 0x4838ed
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0x34c]
mov edx, dword [ebx + 0x354]
mov dword [esp + 0x2c], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0x24], eax
sub esp, 8
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x34]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0x3d
jmp 0x483933
mov eax, dword [0x5c0274]
sub esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fild dword [ebx + 0x34c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x40], eax
mov eax, dword [0x5c0278]
add esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [esp + 0x2c], esi
call fcn.004ccdc0
mov ecx, dword [0x5b62c4]
mov edx, eax
mov al, byte [0x5b62c8]
mov dword [esp + 0x98], ecx
mov byte [esp + 0x9c], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x9d]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov byte [esp + 0x90], 0
mov byte [esp + 0x91], 1
mov byte [esp + 0x92], 0
mov byte [esp + 0x93], 0x86
mov byte [esp + 0x94], 0
mov byte [esp + 0x95], 0
mov byte [esp + 0x96], 0
mov byte [esp + 0x97], 0
cmp edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], esi
stosb byte es:[edi], al
jle 0x484134
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004ccd90
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x14], eax
mov edi, 0x5b62bc
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x483a1e
test al, al
je 0x483a1a
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x483a1e
add esi, 2
add edi, 2
test al, al
jne 0x4839fa
xor eax, eax
jmp 0x483a23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x483a93
mov edi, 0x5b6314
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x483a52
test al, al
je 0x483a4e
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x483a52
add esi, 2
add edi, 2
test al, al
jne 0x483a2e
xor eax, eax
jmp 0x483a57
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x483a93
mov edi, 0x5b630c
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x483a86
test al, al
je 0x483a82
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x483a86
add esi, 2
add edi, 2
test al, al
jne 0x483a62
xor eax, eax
jmp 0x483a8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x484103
mov edi, 0x5b62bc
mov esi, ecx
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x483ac2
test al, al
je 0x483abe
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x483ac2
add esi, 2
add edi, 2
test al, al
jne 0x483a9a
xor eax, eax
jmp 0x483ac7
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x483c5d
mov esi, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esi + 0x64]
push edx
call dword [eax + 0x38]
sub esp, 0x3c
add esi, 0x14
mov ecx, 0xf
mov edi, esp
lea eax, [esp + 0x188]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004c2960
mov eax, dword [esp + 0x18c]
add esp, 0x40
lea edx, [esp + 0x14c]
lea esi, [ebx + 0xe0]
lea ecx, [eax + eax*2]
push edx
mov dword [esp + 0x150], ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [ebp + 8]
push esi
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
mov edx, dword [edi + 8]
lea ecx, [esp + 0x188]
push ecx
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
cmp dword [ebp + 0xc], 1
jne 0x483b82
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x368]
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ecx - 8]
lea eax, [eax + eax*4]
imul ecx, dword [esp + 0x19c]
shl eax, 1
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jmp 0x483bdc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x354]
mov eax, dword [edx + 0x368]
mov edx, dword [ebx + 0x34c]
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov eax, dword [eax - 8]
fild dword [esp + 0x1c]
imul eax, dword [esp + 0x19c]
fdiv qword [ebx + 0x100]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5c0274]
lea edx, [eax + eax*4]
shl edx, 1
fmul qword [0x57f530]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x1c]
faddp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [eax + 8]
sub esp, 8
neg ecx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fisub dword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
add esp, 8
mov ecx, dword [edx + 0x368]
mov edx, dword [ecx - 8]
mov dword [esp + 0x1c], edx
push dword [esp + 0x1c]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [esp + 0x80]
mov ecx, edi
push eax
call dword [edx + 0x64]
mov eax, dword [esp + 0x4c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x484103
mov esi, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [esi + 0x64]
push eax
call dword [edx + 0x38]
sub esp, 0x3c
add esi, 0x14
mov ecx, 0xf
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x3c
mov ecx, 0xf
lea esi, [esp + 0xf4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x483d52
mov eax, dword [esp + 0x24]
test eax, eax
je 0x483cb8
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14c]
push ecx
call fcn.004c2960
fild dword [esp + 0x150]
add esp, 0x38
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x110]
mov dword [esp + 0x110], eax
lea esi, [ebx + 0xe8]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb8]
push ecx
call fcn.004c2960
mov ecx, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0xe8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x14]
sub esp, 8
mov eax, dword [esi + 0x10]
neg eax
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x30]
sub edi, eax
fstp qword [esp + 0x1c]
fild dword [esi + 0xc]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x1c]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], eax
neg ecx
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fisub dword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x54], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x1c]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x44], eax
lea ecx, [esp + 0xd8]
mov eax, dword [edx + 8]
push ecx
push eax
mov dword [esp + 0x50], edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fidiv dword [esp + 0xf4]
fstp qword [esp]
call fcn.004bd890
mov eax, dword [esi + 0x50]
add esp, 8
xor ecx, ecx
mov edx, dword [eax - 8]
mov dword [esp + 0x1c], ecx
dec edx
cmp edx, ecx
jle 0x483e7c
mov edi, ecx
cmp byte [eax + ecx], 0xd
jne 0x483e6f
cmp byte [eax + ecx + 1], 0xa
jne 0x483e6f
inc edi
inc ecx
cmp ecx, edx
jl 0x483e61
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x483e85
mov edi, 1
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0xd8]
lea eax, [edi - 1]
imul eax, dword [esp + 0xe8]
imul edx, edi
mov edi, dword [esi + 0x54]
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0x5b6314
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x483ecc
test cl, cl
je 0x483ec8
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x483ecc
add edi, 2
add eax, 2
test cl, cl
jne 0x483ea8
xor eax, eax
jmp 0x483ed1
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x40]
test eax, eax
je 0x483f1e
mov eax, ecx
cdq
mov edi, eax
mov eax, dword [esp + 0x48]
xor edi, edx
sub edi, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
sub eax, edi
cmp eax, edx
jge 0x483f1e
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub edi, edx
add edi, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add ecx, eax
sub eax, edi
add edx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov edi, dword [esi + 0x80]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x483f72
cmp edx, 1
jg 0x483f72
mov edi, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
push eax
push edx
push esi
push ecx
mov ecx, ebx
call fcn.00499ca0
jmp 0x484103
mov edi, dword [esi + 0x84]
test edi, edi
je 0x483fcd
cmp edx, 1
jg 0x483fcd
mov edi, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x130]
mov ecx, dword [ebx + 0x120]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [ebp + 8]
push eax
push edx
push esi
push ecx
call fcn.004c3cf0
add esp, 0x30
jmp 0x484103
mov edx, dword [esi + 0x78]
test edx, edx
jne 0x483fdb
mov edi, dword [esi + 0x7c]
test edi, edi
je 0x48403c
mov edi, 2
cmp edx, edi
jne 0x483fee
cmp dword [esi + 0x7c], 0
je 0x4840ed
cmp edx, 1
jne 0x483ffd
cmp dword [esi + 0x7c], 0
je 0x48408e
test edx, edx
jne 0x48404e
cmp dword [esi + 0x7c], 1
jne 0x484025
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar edi, 1
sar eax, 1
add edx, edi
add eax, edx
cmp eax, ecx
jge 0x48403c
jmp 0x484038
test edx, edx
jne 0x48404e
cmp dword [esi + 0x7c], edi
jne 0x48404e
mov edx, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
jle 0x48403c
mov dword [esp + 0x40], eax
mov esi, dword [esi + 0x50]
mov ecx, dword [ebp + 8]
push 0
mov eax, dword [esi - 8]
mov edx, dword [ecx]
jmp 0x4840f9
cmp edx, 1
jne 0x48409d
cmp dword [esi + 0x7c], edx
jne 0x484076
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar edi, 1
sar eax, 1
add edx, edi
add eax, edx
cmp eax, ecx
jge 0x48408e
jmp 0x48408a
cmp edx, 1
jne 0x48409d
cmp dword [esi + 0x7c], edi
jne 0x48409d
mov edx, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
jle 0x48408e
mov dword [esp + 0x40], eax
mov esi, dword [esi + 0x50]
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [esi - 8]
mov edx, dword [ecx]
jmp 0x4840f9
cmp edx, edi
jne 0x484103
cmp dword [esi + 0x7c], 1
jne 0x4840d6
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar edi, 1
sar eax, 1
add edx, edi
add eax, edx
cmp eax, ecx
jge 0x4840c7
mov dword [esp + 0x40], eax
mov esi, dword [esi + 0x50]
mov ecx, dword [ebp + 8]
push 2
mov eax, dword [esi - 8]
mov edx, dword [ecx]
jmp 0x4840f9
cmp edx, edi
jne 0x484103
cmp dword [esi + 0x7c], edi
jne 0x484103
mov edx, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
jle 0x4840ed
mov dword [esp + 0x40], eax
mov esi, dword [esi + 0x50]
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [esi - 8]
mov edx, dword [ecx]
lea edi, [esp + 0x40]
push edi
push eax
push esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x4839df
mov eax, dword [esp + 0x24]
test eax, eax
je 0x484134
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [ebp + 0x10]
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4848f1
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
push edx
call fcn.004cc960
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4842da
cmp eax, dword [ebx + 0x138]
jg 0x4842da
xor eax, eax
mov dword [esp + 0x1c], 0x57f4f8
mov dword [esp + 0x20], eax
fild dword [esi + 0x14]
mov dword [esp + 0x1c8], eax
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
neg eax
fstp qword [esp + 0x2c]
fild dword [esp + 0x38]
mov dword [esp + 0x10], eax
sub esp, 8
fstp qword [esp + 0x1c]
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x34]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xd4]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x10]
sub esp, 8
neg edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x34]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x4c]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x1c], 0x57f4d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c8], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x1c], 0x57f4c4
jmp 0x4848de
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4845bd
mov ecx, dword [ebx + 0x138]
cmp eax, ecx
jge 0x4845b4
cmp dword [esi + 0x10], ecx
jge 0x484458
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0x57f4f8
fild dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 2
mov dword [esp + 0x18], ecx
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x18]
add esp, 8
push edx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x34]
fild dword [esp + 0x40]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xc4]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x10]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x6c], 0x57f4d8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c8], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x6c], 0x57f4c4
jmp 0x4848de
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x57f4f8
fild dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 4
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x5c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x34]
fild dword [esp + 0x40]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xd0]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x138]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x5c], 0x57f4d8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c8], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x5c], 0x57f4c4
jmp 0x4848de
cmp edx, dword [esi + 0xc]
je 0x4848de
mov edx, dword [esi + 0x10]
cmp eax, edx
je 0x4848de
mov ecx, dword [ebx + 0x138]
cmp eax, ecx
jge 0x4848de
cmp edx, ecx
jg 0x484734
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0x57f4f8
fild dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 6
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x34]
fild dword [esp + 0x40]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x10]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x64], 0x57f4d8
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c8], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x64], 0x57f4c4
jmp 0x4848de
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0x57f4f8
fild dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 8
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x54]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
fstp qword [esp + 0x4c]
fild dword [esi + 8]
fld st(0)
fild dword [esi + 0xc]
fild dword [esi + 0x10]
fsub st(2)
fcom qword [0x57f4f0]
fnstsw ax
test ah, 0x40
jne 0x4847ea
fild dword [ebx + 0x138]
fsub st(3)
fxch st(2)
fsub qword [esp + 0x4c]
fmulp st(2)
fxch st(1)
fdiv st(1)
fadd qword [esp + 0x4c]
fstp qword [esp + 0x74]
jmp 0x4847ec
fstp st(0)
fstp st(0)
fstp st(0)
fild dword [esp + 0x28]
sub esp, 8
fstp qword [esp + 0x34]
fild dword [esp + 0x40]
fstp qword [esp + 0x1c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xc0]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x138]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fchs
fstp qword [esp]
call fcn.004bd890
fld qword [esp + 0x7c]
fdiv qword [ebx + 0x100]
add esp, 8
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c8], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x54], 0x57f4c4
mov eax, dword [esp + 0x24]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x24], eax
jne 0x48414e
mov ecx, dword [esp + 0x1c0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc