Function at 0x5328af
Capabilities:
Create thread

Disassembly:
push 0x398
mov eax, 0x566ac3
call fcn.004cd176
mov ebx, ecx
mov dword [ebp - 0x39c], ebx
mov eax, dword [ebx + 0xb4]
mov dword [ebp - 0x3a4], eax
inc eax
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0x6c]
push 8
pop ecx
mov dword [ebp - 0x3a0], eax
cmp dword [eax + 0x14], ecx
jb 0x5328f2
mov eax, dword [eax]
mov dword [ebp - 0x3a0], eax
mov esi, dword [ebx + 0x13c]
mov edi, dword [ebx + 0x138]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push dword [ebp - 0x3a4]
mov eax, dword [ebx + 0x144]
push dword [ebx + 0x190]
sub eax, esi
push eax
mov eax, dword [ebx + 0x140]
sub eax, edi
push eax
push esi
push edi
push 0x5000008b
push dword [ebp - 0x3a0]
push str.STATIC
push 0
call fcn.00469feb
push 1
mov dword [ebx + 0x1a0], eax
call fcn.0053136e
push eax
push 0x30
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0xb4]
push 0
push 0
lea eax, [esi + 1]
mov dword [ebx + 0xb4], eax
mov edi, dword [ebx + 0x12c]
mov ebx, dword [ebx + 0x128]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push esi
mov esi, dword [ebp - 0x39c]
push dword [esi + 0x190]
mov eax, dword [esi + 0x134]
sub eax, edi
push eax
mov eax, dword [esi + 0x130]
sub eax, ebx
push eax
push edi
push ebx
push 8
xor eax, eax
cmp dword [esi + 0x60], 2
pop ecx
cmove eax, ecx
xor edi, edi
or eax, 0x50000000
push eax
push edi
push str.msctls_progress32
push edi
call fcn.00469feb
mov ecx, 0x56ff68
mov dword [esi + 0x19c], eax
push ecx
push ecx
push eax
call dword [sym.imp.UxTheme.dll_SetWindowTheme]
movzx eax, word [0x61e10c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 0x10
push eax
push edi
push 0x401
push dword [esi + 0x19c]
call ebx
push edi
push 1
push 0x404
push dword [esi + 0x19c]
call ebx
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
push 0x2001
push dword [esi + 0x19c]
call ebx
push 0x3ceb
push edi
push 0x409
push dword [esi + 0x19c]
call ebx
cmp dword [esi + 0x60], 2
jne 0x532a47
push 0x64
push 1
push 0x40a
push dword [esi + 0x19c]
call ebx
cmp dword [esi + 0x64], edi
je 0x532b17
push 0x2c
call fcn.00409735
pop ecx
mov dword [ebp - 0x39c], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x532a71
push edi
push 1
mov ecx, eax
call fcn.005126d1
jmp 0x532a73
mov eax, edi
or dword [ebp - 4], 0xffffffff
lea ebx, [esi + 0xe8]
push eax
mov ecx, ebx
call fcn.0051291f
push edi
push edi
push esi
push 0x53346a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x532ac5
push str.CreateThread_call_failed.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x398]
call fcn.005103d0
push 0x5d6094
lea eax, [ebp - 0x398]
push eax
call fcn.004cea74
push 0x14
call fcn.00409735
mov dword [ebp - 0x39c], eax
pop ecx
test eax, eax
je 0x532afa
mov dword [eax], vtable.RefCounted.0
mov dword [eax + 4], 0
mov dword [eax], vtable.OHandle.0
mov dword [eax + 8], edi
mov byte [eax + 0xc], 1
mov dword [eax + 0x10], 0x55
jmp 0x532afc
xor eax, eax
push eax
lea ecx, [esi + 0x84]
call fcn.00532084
mov ecx, ebx
call fcn.00530183
push 0xffffffffffffffff
push eax
call fcn.00513ecc
call fcn.004cd128
ret