Function at 0x431530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor eax, eax
push ebx
mov ebx, ecx
mov ecx, dword [0x567f8c]
mov dword [ebp - 0x1c], ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0xe0], 0x100000
cmp ecx, 0x100000
jb 0x4315a2
mov eax, dword [0x567f90]
push 4
push 0x1000
sub eax, ecx
push 0x100000
add eax, 0xc15888
push eax
call edx
mov ecx, dword [0x567f8c]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x4315a2
sub ecx, 0x110000
mov dword [0x567f8c], ecx
mov dword [ebx + 0xdc], eax
test eax, eax
je 0x4317b0
mov esi, dword [edi + 8]
xor eax, eax
mov dword [ebx + 0xc8], esi
cmp esi, ecx
ja 0x4315ec
mov eax, dword [0x567f90]
push 4
push 0x1000
sub eax, ecx
push esi
add eax, 0xc15888
push eax
call edx
test eax, eax
je 0x4315ec
lea ecx, [esi + 0x10000]
and ecx, 0xffff0000
sub dword [0x567f8c], ecx
mov dword [ebx + 0xc0], eax
test eax, eax
je 0x4317b0
push 0x5674e4
push 0x310
call fcn.004bd047
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x4316ae
push 0x2c
mov dword [esi + 0x20], 0x1000
lea eax, [esi + 0x40]
xorps xmm0, xmm0
movups xmmword [esi + 9], xmm0
mov word [esi + 0x19], 0
push 0
push eax
mov byte [esi + 8], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x308], 0
call fcn.004bf140
push 0x168
lea eax, [esi + 0x70]
push 0
push eax
call fcn.004bf140
push 0x130
lea eax, [esi + 0x1d8]
push 0
push eax
call fcn.004bf140
add esp, 0x24
mov dword [esi], vtable.COggDecodeUser.0
jmp 0x4316b0
xor esi, esi
mov dword [ebx + 0xec], esi
test esi, esi
jne 0x4316c6
mov dword [ebx + 0x4c], 0x26
jmp 0x4317b7
push dword [ebx + 0xc8]
mov eax, dword [esi]
mov ecx, esi
push dword [ebx + 0xc0]
push dword [ebx + 0xe0]
mov eax, dword [eax + 4]
push dword [ebx + 0xdc]
push edi
call eax
test al, al
jne 0x4316f8
mov dword [ebx + 0x4c], 0x27
jmp 0x4317b7
mov ax, word [edi + 2]
mov ebx, 1
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov si, word [edi + 0xc]
mov di, word [edi + 0xe]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], bx
or eax, 0x80c8
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebx]
mov ecx, ebx
push eax
mov word [ebp - 0xc], si
mov word [ebp - 0xa], di
call dword [edx + 0x4c]
test eax, eax
jne 0x43174f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
jmp 0x4317b7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 8]
push eax
push 0
push ebx
push 0x42fd30
push 0
push 0
call fcn.004c2b9a
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x43178f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebx + 0x4c], 0x24
jmp 0x4317b7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x4c], 0x22
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8