Function at 0x5310dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x5310e4
push ebx
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x5316df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5316f8
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531708
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004709cc
push 0
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531728
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx + 0x10]
test al, al
je 0x531272
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x53173c
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x10], 0
jne 0x5311a8
lea eax, [ebp - 0x34]
call fcn.00521b68
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
mov ecx, 0x531750
call fcn.004055bc
mov eax, dword [ebp - 0x14]
call fcn.00521adc
test al, al
jne 0x5316b7
lea eax, [ebp - 0x38]
call fcn.00521b68
mov eax, dword [ebp - 0x38]
call fcn.00521d10
jmp 0x5316b7
lea edx, [ebp - 0x40]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004717d4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040b2d4
mov eax, dword [ebp - 0x3c]
call fcn.00521adc
test al, al
jne 0x5311fd
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x360]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x530e28
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x398], eax
lea edx, [ebp - 0x48]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004717d4
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040b2d4
mov eax, dword [ebp - 0x44]
call fcn.00521adc
test al, al
je 0x5316b7
push 1
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x53175c
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx + 0x10]
test al, al
je 0x5316b7
push 0x5316f8
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531708
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x4c]
call fcn.00520128
jmp 0x5316b7
lea edx, [ebp - 0x54]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004717d4
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0040b2d4
mov eax, dword [ebp - 0x50]
call fcn.00521adc
test al, al
je 0x5312e3
push 1
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x53175c
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx + 0x10]
test al, al
je 0x5316b7
push 0x5316f8
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531708
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x58]
call fcn.00520128
jmp 0x5316b7
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531770
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531788
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x1c], 0
jne 0x531396
cmp dword [ebp - 0x18], 0
jne 0x531396
lea edx, [ebp - 0x60]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004717d4
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040b2d4
lea eax, [ebp - 0x5c]
mov edx, 0x5317a4
call fcn.00405570
mov eax, dword [ebp - 0x5c]
call fcn.004e0468
push 1
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x53175c
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx + 0x10]
test al, al
je 0x531396
push 0x5316f8
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x552248]
mov eax, dword [eax]
mov ecx, 0x531708
mov edx, 0x531718
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x64]
call fcn.00520128
lea edx, [ebp - 0x6c]
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.004717d4
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0040b2d4
mov eax, dword [ebp - 0x68]
call fcn.0052160c
test al, al
jne 0x5316b7
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0x74]
mov eax, 0x5317b4
call fcn.004114b8
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00410378
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0xc]
mov ecx, 0x5317c4
call fcn.004055bc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x42b2fc]
call fcn.0042c2f8
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x53143c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5317dc
lea eax, [ebp - 4]
push eax
mov ecx, 0x5317e8
mov edx, 0x5317fc
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531443
mov eax, dword [ebp - 0x28]
call fcn.00404340
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5316e6
lea eax, [ebp - 0x80]
mov edx, 0x15
call fcn.004052c8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004052c8
ret