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

Disassembly:
push 0xffffffffffffffff
push 0x5e1b78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x60]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x5c]
xor eax, eax
cmp dword [edi + 0x20], 0xf060
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xc]
sete al
cmp dword [edi + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov ebp, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
je 0x51fbba
push 0xf
mov ecx, ebx
call fcn.0051c180
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
push 0
push 1
push 0
push 0
push 1
push eax
push ecx
jmp 0x51fbea
cmp dword [edi + 0x1c], 0
je 0x51fd11
push 0xf
mov ecx, ebx
call fcn.0051c180
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov eax, dword [edi + 0x1c]
push 0
push 1
push 0
push 0
push 1
push 0
push eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
mov edx, dword [edx + 0x84]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call edx
test ebp, ebp
je 0x51fcfb
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
mov edi, eax
lea eax, [ecx + edx]
cdq
sub eax, edx
push 0
mov ebx, eax
push esi
lea ecx, [esp + 0x40]
sar edi, 1
sar ebx, 1
call fcn.0055cc80
lea ebp, [edi - 3]
lea eax, [ebx - 4]
push ebp
push eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x60], 0
call sub.mfc90u.dll_CDC::MoveTo
lea eax, [edi + 4]
lea ecx, [ebx + 3]
push eax
mov dword [esp + 0x18], ecx
push ecx
mov ecx, esi
mov dword [esp + 0x64], eax
call sub.mfc90u.dll_CDC::LineTo
lea eax, [ebx - 3]
push ebp
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x24], eax
call sub.mfc90u.dll_CDC::MoveTo
mov edx, dword [esp + 0x5c]
push edx
add ebx, 4
push ebx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
mov eax, dword [esp + 0x60]
lea ebp, [edi + 3]
push ebp
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::MoveTo
mov edx, dword [esp + 0x14]
add edi, 0xfffffffc
push edi
push edx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
mov eax, dword [esp + 0x18]
push ebp
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::MoveTo
push edi
push ebx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0xffffffff
call fcn.0055cd70
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
test ebp, ebp
jne 0x51fc1f
push 0xf
mov ecx, ebx
call fcn.0051c180
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect_1
push 0x10
mov ecx, ebx
call fcn.0051c180
push eax
push 0x10
mov ecx, ebx
call fcn.0051c180
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::Draw3dRect_1
jmp 0x51fcfb