Function at 0x537d40
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5df848
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x10], ebx
fld1
movzx eax, byte [esp + 0x48]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea edi, [esi + 0xc]
push edi
movzx eax, al
push ebx
push ecx
shl eax, 0x18
mov dword [edi], ebx
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreatePen1
mov dword [edi + 4], eax
movzx eax, byte [esi + 8]
lea ecx, [esp + 0x48]
shl eax, 0x18
push ecx
push eax
mov dword [esp + 0x48], ebx
mov dword [esi + 0x1c], 6
mov dword [esi + 0x14], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x50], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x48]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edx
fldz
lea eax, [esp + 0x48]
mov dword [esi + 0x20], ebx
fst dword [esi + 0x24]
fst dword [esi + 0x28]
push eax
sub esp, 0x18
fst dword [esp + 0x14]
fst dword [esp + 0x10]
mov dword [esp + 0x64], ebx
fld1
fst dword [esp + 0xc]
fxch st(1)
fst dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call sub.gdiplus.dll_GdipCreateMatrix2
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ecx
fldz
push 0x635db7
fstp qword [esi + 0x38]
lea ecx, [esi + 0x44]
mov byte [esp + 0x44], 2
mov byte [esi + 0x40], bl
call fcn.0048cd50
push 0x635dbb
lea ecx, [esi + 0x64]
mov byte [esp + 0x44], 3
call fcn.0048cd50
push 0x635dda
lea ecx, [esi + 0x94]
mov byte [esp + 0x44], 4
call fcn.0048cd50
fldz
fst qword [esi + 0xc0]
mov byte [esp + 0x40], 5
fst qword [esi + 0xc8]
mov dword [esi], ebx
fst qword [esi + 0xd0]
mov dword [esi + 0xe8], ebx
fld1
fstp qword [esi + 0xd8]
fstp qword [esi + 0xe0]
push 0x2c
mov dword [esi + 0xec], ebx
call fcn.004274d1
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 6
je 0x537ec7
push ebx
lea ecx, [esp + 0x1c]
call fcn.0048cd50
lea edx, [esp + 0x18]
push edx
push ebx
mov ecx, edi
mov byte [esp + 0x48], 7
mov dword [esp + 0x18], 1
call fcn.004acba0
mov dword [edi], 0x5f4650
jmp 0x537ec9
xor edi, edi
test byte [esp + 0x10], 1
mov dword [esi + 0x84], edi
mov dword [esp + 0x40], 5
je 0x537eff
and dword [esp + 0x10], 0xfffffffe
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x18], 0x5f1558
jb 0x537eff
mov eax, dword [esp + 0x20]
push eax
call fcn.004274fc
add esp, 4
push 0x2c
call fcn.004274d1
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 9
je 0x537f41
push ebx
lea ecx, [esp + 0x1c]
call fcn.0048cd50
or dword [esp + 0x10], 2
lea ecx, [esp + 0x18]
push ecx
push ebx
mov ecx, edi
mov byte [esp + 0x48], 0xa
call fcn.004acba0
mov dword [edi], 0x5f4650
jmp 0x537f43
xor edi, edi
test byte [esp + 0x10], 2
mov dword [esi + 0x88], edi
je 0x537f6c
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x18], 0x5f1558
jb 0x537f6c
mov edx, dword [esp + 0x20]
push edx
call fcn.004274fc
add esp, 4
mov dword [esi + 0x8c], 0x683b58
mov dword [esi + 0x90], 0x683b70
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4