Function at 0x4235d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x4cc440
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0x4cbe28
mov eax, dword [esi + 0xa4]
mov byte [esp + 0x54], 1
push eax
push ebx
push ebx
call dword [sym.imp.gdi32.dll_CreatePen]
push eax
lea ecx, [esp + 0x2c]
call sub.mfc42.dll_CGdiObject::Attach
mov eax, dword [esi + 0xa0]
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CGdiObject::Attach
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call sub.mfc42.dll_CDC::SelectObject_1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
mov ecx, edi
call sub.mfc42.dll_CDC::SelectObject_2
fld qword [esi + 0x60]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebx
call sub.msvcrt.dll__ftol
fld qword [esi + 0x68]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ebx
call sub.msvcrt.dll__ftol
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x40]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jle 0x423824
mov eax, dword [esi + 0x7c]
test al, 1
je 0x42375a
mov eax, dword [esi + 0x90]
dec eax
je 0x423733
dec eax
jne 0x4237e5
fild dword [esi + 0x98]
fidivr dword [esi + 0x48]
fimul dword [esp + 0x10]
fld st(0)
call sub.msvcrt.dll__ftol
fsub qword [0x4cc458]
mov ebx, eax
dec ebx
mov dword [esp + 0x10], ebx
fisub dword [esp + 0x10]
fmul qword [esi + 0x68]
call sub.msvcrt.dll__ftol
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov ecx, esi
cmp eax, ebx
lea eax, [esp + 0x38]
push eax
push edi
jg 0x423717
call dword [edx + 0xcc]
jmp 0x4237e5
call dword [edx + 0xc8]
mov eax, dword [esp + 0xc]
inc ebx
cmp eax, ebx
jne 0x4237e5
mov eax, dword [esp + 0x10]
jmp 0x4237d0
mov eax, dword [esi + 0x48]
mov edx, dword [esi]
cmp ecx, eax
lea eax, [esp + 0x38]
push eax
mov ecx, esi
push edi
jne 0x42374f
call dword [edx + 0xcc]
jmp 0x4237e5
call dword [edx + 0xc8]
jmp 0x4237e5
test al, 2
je 0x4237e5
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
sub ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fidivr dword [esi + 0x48]
fimul dword [esp + 0x10]
fld st(0)
call sub.msvcrt.dll__ftol
fsub qword [0x4cc458]
mov ebx, eax
dec ebx
mov dword [esp + 0x14], ebx
fisub dword [esp + 0x14]
fmul qword [esi + 0x68]
call sub.msvcrt.dll__ftol
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, esi
cmp eax, ebx
lea eax, [esp + 0x38]
push eax
push edi
jg 0x4237bd
call dword [edx + 0xcc]
jmp 0x4237e5
call dword [edx + 0xc8]
mov eax, dword [esp + 0xc]
inc ebx
cmp eax, ebx
jne 0x4237e5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4237e5
mov edx, dword [esi]
push eax
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push edi
call dword [edx + 0xd0]
fild dword [esi + 0x5c]
fadd qword [esi + 0x68]
fadd qword [esp + 0x30]
fst qword [esp + 0x30]
call sub.msvcrt.dll__ftol
fld qword [esp + 0x30]
fadd qword [esi + 0x68]
mov dword [esp + 0x38], eax
call sub.msvcrt.dll__ftol
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x40]
inc ecx
cmp ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jl 0x4236ae
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call sub.mfc42.dll_CDC::SelectObject_1
mov edx, dword [esp + 0x1c]
mov ecx, edi
push edx
call sub.mfc42.dll_CDC::SelectObject_2
lea ecx, [esp + 0x28]
call sub.mfc42.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
call sub.mfc42.dll_CGdiObject::DeleteObject
mov esi, 0x4cbe50
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 2
call sub.mfc42.dll_CGdiObject::DeleteObject
mov dword [esp + 0x20], 0x4cbe3c
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 3
call sub.mfc42.dll_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8