Function at 0x5c4630
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e2e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, dword [esp + 0x16c]
mov ebp, dword [esp + 0x168]
push edi
mov esi, ecx
push ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], ebp
call fcn.005c1ca0
fldz
mov dword [esi], 0x6568d0
fst dword [esi + 0x3c]
fst dword [esi + 0x38]
mov eax, 0xff000000
fst dword [esi + 0x34]
xor ebx, ebx
fstp dword [esi + 0x30]
mov dword [esp + 0x160], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
lea ecx, [esi + 0x88]
mov byte [esp + 0x160], 1
call fcn.005c66c0
lea ecx, [esi + 0xf8]
mov byte [esp + 0x160], 2
call fcn.005c66c0
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
fldz
mov ecx, dword [esi + 4]
fst qword [esi + 0x40]
fst qword [esi + 0x58]
mov dword [esi + 0x68], ebx
fstp qword [esi + 0x60]
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
mov byte [esi + 0x80], bl
mov eax, dword [edi]
mov byte [esp + 0x160], 5
mov dword [esi + 0x4c], eax
call fcn.004d1ec0
mov edi, eax
cmp edi, ebx
je 0x5c4745
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push 5
mov ecx, edi
call eax
jmp 0x5c4747
xor eax, eax
cmp edi, ebx
mov dword [esi + 0x168], eax
je 0x5c475e
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push 6
mov ecx, edi
call eax
jmp 0x5c4760
xor eax, eax
cmp edi, ebx
mov dword [esi + 0x16c], eax
je 0x5c4777
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push 7
mov ecx, edi
call eax
jmp 0x5c4779
xor eax, eax
mov ecx, dword [esi + 0x168]
cmp ecx, ebx
mov dword [esi + 0x170], eax
je 0x5c479e
lea edx, [esp + 0x50]
push edx
call fcn.004b8090
fld qword [esp + 0x58]
fsub qword [esp + 0x50]
fstp qword [esi + 0x60]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov edi, eax
cmp edi, 4
mov dword [esp + 0x20], edi
je 0x5c47bc
cmp edi, 5
jne 0x5c4d79
mov ecx, ebp
mov dword [esi + 0x174], ebp
call fcn.005023a0
mov ecx, dword [esi + 0x174]
mov dword [esi + 0x68], eax
call fcn.005026c0
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
jbe 0x5c48c5
cmp edi, 4
mov byte [esp + 0x18], bl
jne 0x5c47fc
mov ecx, dword [esp + 0x24]
push ebp
call fcn.00501a00
mov byte [esp + 0x18], al
mov ecx, dword [esi + 0x174]
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.005027b0
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x160], 6
je 0x5c481f
mov eax, dword [eax]
jmp 0x5c4821
xor eax, eax
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.005c3e50
push eax
lea ecx, [esi + 0x70]
mov byte [esp + 0x164], 7
call fcn.005c5560
cmp dword [esp + 0x68], 8
jb 0x5c4855
mov edx, dword [esp + 0x54]
push edx
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
mov byte [esp + 0x160], 5
je 0x5c48b8
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x5c48b0
cmp edi, ebx
je 0x5c48b0
mov eax, dword [edi]
cmp eax, ebx
je 0x5c4897
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x5c48a7
push eax
call fcn.004274fc
add esp, 4
push edi
call fcn.004274fc
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jb 0x5c47e5
fldz
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x40]
fst qword [esp + 0x38]
push eax
fst qword [esp + 0x4c]
lea ecx, [esp + 0x4c]
fstp qword [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.004d2c60
test al, al
je 0x5c4991
fld qword [esp + 0x38]
fld qword [0x5f38b0]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fmul st(1), st(0)
or eax, 0xc00
fxch st(1)
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov al, byte [esp + 0x14]
movzx ecx, al
or ecx, 0xffffff00
shl ecx, 8
fldcw word [esp + 0x18]
fld qword [esp + 0x48]
fnstcw word [esp + 0x18]
fmul st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx edx, byte [esp + 0x14]
movzx eax, dl
fldcw word [esp + 0x18]
or ecx, eax
shl ecx, 8
fmul qword [esp + 0x40]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx edx, byte [esp + 0x14]
movzx eax, dl
fldcw word [esp + 0x18]
or ecx, eax
mov dword [esi + 0x4c], ecx
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
movzx ecx, al
or ecx, 0xffffff00
movzx edx, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
cmp edi, 5
mov dword [esi + 0x50], ecx
jne 0x5c49cb
fld1
mov dword [esi + 0x48], 0xff000000
fstp qword [esi + 0x40]
jmp 0x5c49dd
mov ecx, ebp
call fcn.004d1f90
shr eax, 0x15
and al, 1
mov byte [esi + 0x80], al
push 0x10
call fcn.004274d1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x160], 8
je 0x5c4a40
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.004d4340
mov edx, dword [eax]
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, ebp
call fcn.004d7290
push eax
mov ecx, edi
call fcn.005ca000
mov ebp, eax
jmp 0x5c4a42
xor ebp, ebp
mov edi, dword [esi + 0x178]
cmp ebp, edi
mov byte [esp + 0x160], 5
je 0x5c4a70
cmp edi, ebx
je 0x5c4a70
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x5c4a67
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push edi
call fcn.004274fc
add esp, 4
push 0x10
mov dword [esi + 0x178], ebp
call fcn.004274d1
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
mov byte [esp + 0x160], 9
je 0x5c4ab1
push ebx
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x28]
push eax
call fcn.004d7290
push eax
mov ecx, edi
call fcn.005ca160
mov ebp, eax
jmp 0x5c4ab3
xor ebp, ebp
mov edi, dword [esi + 0x17c]
cmp ebp, edi
mov byte [esp + 0x160], 5
je 0x5c4ae1
cmp edi, ebx
je 0x5c4ae1
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x5c4ad8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push edi
call fcn.004274fc
add esp, 4
lea ecx, [esp + 0xe4]
mov dword [esi + 0x17c], ebp
call fcn.005c66c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x160], 0xa
call fcn.005c66c0
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov byte [esp + 0x164], 0xb
call fcn.005c1bc0
mov ecx, dword [esp + 0x24]
call fcn.004d4610
fst qword [esp + 0x10c]
mov edx, dword [esp + 0x20]
fld qword [0x6010c8]
mov eax, edx
sub eax, 4
je 0x5c4bce
sub eax, 1
jne 0x5c4bf2
mov ecx, dword [esp + 0x1c]
cmp ecx, 5
jb 0x5c4b5b
mov dword [esp + 0x1c], 5
mov ecx, dword [esp + 0x1c]
mov eax, ecx
test eax, eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jge 0x5c4b6f
fadd dword [0x659f44]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
fld st(1)
fcomp qword [0x659f18]
fnstsw ax
test ah, 0x44
jp 0x5c4bfc
cmp ecx, ebx
fstp st(1)
mov eax, ecx
jne 0x5c4b93
mov eax, 1
test eax, eax
fld dword [esp + 0x34]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jge 0x5c4ba9
fadd dword [0x659f44]
fdivp st(1)
fdiv st(1)
fst qword [esp + 0x10c]
fld qword [0x656838]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x5c4bf8
fstp st(1)
fst qword [esp + 0x10c]
jmp 0x5c4bfa
fld st(1)
fcomp qword [0x659f18]
fnstsw ax
test ah, 0x44
jp 0x5c4bf2
mov ecx, dword [esp + 0x1c]
fstp st(1)
fld qword [0x656838]
fst qword [esp + 0x10c]
jmp 0x5c4bfa
mov ecx, dword [esp + 0x1c]
jmp 0x5c4bfc
fstp st(0)
fxch st(1)
cmp edx, 5
fmul st(1)
fst qword [esi + 0x58]
jne 0x5c4c67
test ecx, ecx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
jge 0x5c4c18
fadd qword [0x659f10]
fmulp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fld qword [esi + 0x28]
fld qword [0x5fdc90]
fmul st(1), st(0)
fld dword [esp + 0x34]
fld st(0)
faddp st(3)
fxch st(3)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x28]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd st(1)
fstp dword [esp + 0x30]
faddp st(1)
fstp dword [esp + 0x34]
jmp 0x5c4c69
fstp st(0)
mov ecx, dword [esp + 0x28]
fstp qword [esp + 0x9c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x178]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
push edx
lea ecx, [esp + 0xe8]
call fcn.005c65b0
mov eax, dword [esi + 0x17c]
push eax
lea ecx, [esp + 0x78]
call fcn.005c65b0
lea ecx, [esp + 0xe4]
push ecx
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.005c3170
fld qword [esp + 0x14c]
mov edx, dword [esp + 0x144]
fstp qword [edi + 0x68]
mov dword [edi + 0x60], edx
lea eax, [esp + 0x74]
lea edi, [esi + 0xf8]
push eax
mov ecx, edi
call fcn.005c3170
fld qword [esp + 0xdc]
mov edx, dword [esp + 0xcc]
fstp qword [edi + 0x68]
mov ecx, dword [esp + 0xd4]
mov ebp, 0x656608
push edx
mov dword [edi + 0x60], ecx
mov dword [esp + 0x78], ebp
call sub.gdiplus.dll_GdipDeleteMatrix
mov edi, 8
cmp dword [esp + 0x94], edi
jb 0x5c4d32
mov eax, dword [esp + 0x80]
push eax
call fcn.004274fc
add esp, 4
mov ecx, dword [esp + 0x13c]
push ecx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov dword [esp + 0xe8], ebp
call sub.gdiplus.dll_GdipDeleteMatrix
cmp dword [esp + 0x104], edi
jb 0x5c4d79
mov edx, dword [esp + 0xf0]
push edx
call fcn.004274fc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044abb9
add esp, 0x150
ret 8