Function at 0x437cd7
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c58ba
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4f51d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 8]
mov esi, eax
lea edi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [esp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebx + 0x2c]
movsd dword es:[edi], dword [esi]
add dword [esp + 0x38], 0x16
sub dword [esp + 0x40], 0x14
add dword [esp + 0x3c], 3
sub dword [esp + 0x44], 3
push 0x18
push dword [eax + 0x230]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
cdq
and edx, 3
xor esi, esi
add eax, edx
sar eax, 2
cmp dword [ebx + 0x40], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jne 0x437df4
mov edx, dword [ebx + 0x2c]
cmp dword [edx + 0x230], esi
je 0x437df4
mov dword [esp + 0x24], eax
add eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.0040c77a
push 5
pop edx
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
lea esi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xff
sub esp, 0x10
mov ecx, dword [ebx + 0x2c]
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
push dword [ecx + 0x230]
lea esi, [esp + 0x6c]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsd dword es:[edi], dword [esi]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [ebx + 0x30], esi
je 0x437e6b
lea ecx, [eax + eax]
mov dword [esp + 0x24], ecx
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0040c77a
push 5
pop edx
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
lea esi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xff
sub esp, 0x10
mov ecx, dword [ebx + 0x2c]
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
push dword [ecx + 0x230]
lea esi, [esp + 0x6c]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsd dword es:[edi], dword [esi]
call dword [edx + 8]
xor esi, esi
mov ecx, dword [ebx + 0x18]
cmp ecx, esi
jl 0x437ea6
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
sub eax, 0xc
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 0x2c]
push dword [ebp + 8]
add edi, 5
add ecx, 0x264
mov esi, eax
call fcn.004437e7
add edi, 0x1b
mov dword [esp + 0x54], edi
xor esi, esi
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x437f5b
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
sub eax, 5
cmp dword [esp + 0x1c], eax
jle 0x437f35
push 6
pop ecx
lea edx, [esp + 0x14]
mov eax, edi
call fcn.00404b49
lea ecx, [esp + 0x18]
push 0x4dc974
push ecx
mov ecx, eax
mov dword [esp + 0x90], esi
call fcn.00422ef9
pop ecx
pop ecx
mov byte [esp + 0x88], 1
call fcn.00405208
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00408396
or dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408396
cmp dword [ebx + 0x30], esi
je 0x437f3f
mov ebx, dword [ebx + 0x38]
jmp 0x437f42
mov ebx, dword [ebx + 0x34]
call fcn.0040c77a
mov edx, dword [eax]
push 0x24
push ebx
lea ecx, [esp + 0x5c]
push ecx
push dword [edi]
mov ecx, eax
push dword [ebp + 8]
call dword [edx + 0x34]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4