Function at 0x4768f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ec558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, 0x4f5b18
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call fcn.00425190
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004252c0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004252c0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004252c0
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
call fcn.004252c0
xor ecx, ecx
xor eax, eax
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004252c0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x48], 2
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.00434090
fmul qword [0x4f5b10]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
fstp qword [esp + 0x24]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004ce2f0
add esp, 0x28
cmp eax, esi
jge 0x476a7a
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x48], 3
cmp eax, esi
je 0x476a2d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebx, 0x4f4f00
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x48], 4
cmp eax, esi
je 0x476a50
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], 0xffffffff
call fcn.004d9ba0
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
sub esp, 0x10
mov ebx, dword [esp + 0xa8]
mov ecx, esp
mov edx, dword [esp + 0xac]
sub esp, 0x10
mov dword [ecx], edi
mov eax, esp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [eax], ecx
mov ecx, dword [esp + 0xa8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00477460
mov ecx, eax
add esp, 0x2c
lea edx, [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
mov ecx, dword [esp + 0x54]
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x34]
mov esi, 1
cmp eax, esi
jle 0x476b86
sub esp, 0x10
mov ecx, dword [esp + 0xac]
mov eax, esp
sub esp, 0x10
mov edx, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [edx], eax
mov eax, dword [esp + 0xa8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xac]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 0xc], ecx
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [eax + esi*8]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00477460
mov edx, eax
add esp, 0x2c
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x54]
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x476b0e
mov esi, 0x4f5b18
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x48], 5
test eax, eax
je 0x476ba5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebx, 0x4f4f00
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x48], 6
test eax, eax
je 0x476bc8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], 0xffffffff
call fcn.004d9ba0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret