Function at 0x10005220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016d6c1
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ecx], edi
call fcn.100066b0
mov ecx, eax
call fcn.10081db0
call fcn.100066b0
cmp dword [eax + 0x50], 8
lea ebx, [eax + 0x3c]
jb 0x10005266
mov ebx, dword [ebx]
call fcn.100066b0
cmp dword [eax + 0xb0], 8
lea esi, [eax + 0x9c]
jb 0x1000527c
mov esi, dword [esi]
cmp dword [0x101ed6cc], 0
jne 0x100052a2
push 4
call fcn.10092352
add esp, 4
test eax, eax
je 0x1000529b
mov dword [eax], vtable.CShareConfigManager.0
jmp 0x1000529d
xor eax, eax
mov dword [0x101ed6cc], eax
mov eax, dword [0x101ed764]
test eax, eax
jne 0x100052dd
push 0xf0
call fcn.10092352
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100052cf
mov ecx, eax
call fcn.10073e80
jmp 0x100052d1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x101ed764], eax
push esi
push ebx
mov ecx, eax
call fcn.10074410
mov esi, dword [0x101ed6a4]
test esi, esi
jne 0x1000532c
push 0x14
call fcn.10092352
mov esi, eax
add esp, 4
test esi, esi
je 0x10005324
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
jmp 0x10005326
xor esi, esi
mov dword [0x101ed6a4], esi
cmp dword [esi], 0
mov dword [esi + 0xc], edi
jne 0x1000534c
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10007990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp dword [0x101ed714], 0
jne 0x10005364
push 1
call fcn.10092352
add esp, 4
mov dword [0x101ed714], eax
push edi
call fcn.10009cb0
cmp dword [0x101ed6bc], 0
jne 0x10005390
push 4
call fcn.10092352
add esp, 4
test eax, eax
je 0x10005389
mov dword [eax], vtable.CGlobalFunction.0
jmp 0x1000538b
xor eax, eax
mov dword [0x101ed6bc], eax
cmp dword [0x101ed6a0], 0
jne 0x100053a8
push 1
call fcn.10092352
add esp, 4
mov dword [0x101ed6a0], eax
mov eax, dword [0x101ed6c0]
test eax, eax
jne 0x100053e0
push 4
call fcn.10092352
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x100053d2
mov ecx, eax
call fcn.100b81e0
jmp 0x100053d4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x101ed6c0], eax
mov ecx, eax
call fcn.100b8880
mov eax, dword [0x101ed6b8]
test eax, eax
jne 0x1000541f
push 0x14
call fcn.10092352
add esp, 4
test eax, eax
je 0x10005418
mov byte [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [eax + 0x10], 0
jmp 0x1000541a
xor eax, eax
mov dword [0x101ed6b8], eax
mov dword [eax + 4], edi
mov eax, dword [0x101ed740]
test eax, eax
jne 0x1000545a
push 0x44
call fcn.10092352
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1000544c
mov ecx, eax
call fcn.10064b50
jmp 0x1000544e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x101ed740], eax
push edi
mov ecx, eax
call fcn.10064e50
cmp dword [0x101ed6c8], 0
jne 0x10005496
push 8
call fcn.10092352
add esp, 4
test eax, eax
je 0x1000548f
mov dword [eax], vtable.CImeProc.0
mov byte [eax + 4], 1
mov dword [0x101e88a8], 0
jmp 0x10005491
xor eax, eax
mov dword [0x101ed6c8], eax
call fcn.10083520
cmp dword [0x101ed6a8], 0
jne 0x100054b3
push 1
call fcn.10092352
add esp, 4
mov dword [0x101ed6a8], eax
call fcn.1003b940
mov eax, dword [0x101ed6b0]
test eax, eax
jne 0x100054df
push 0x30
call fcn.10092352
add esp, 4
test eax, eax
je 0x100054d8
mov ecx, eax
call fcn.10027ce0
jmp 0x100054da
xor eax, eax
mov dword [0x101ed6b0], eax
mov ecx, eax
call fcn.10027dd0
mov esi, dword [0x101ed694]
test esi, esi
jne 0x10005514
push 0x138
call fcn.10092352
mov esi, eax
add esp, 4
test esi, esi
je 0x1000550c
mov ecx, esi
call fcn.1007bf70
jmp 0x1000550e
xor esi, esi
mov dword [0x101ed694], esi
mov eax, dword [0x101ed690]
mov dword [esi + 0x4c], edi
test eax, eax
jne 0x1000554c
push 0x10
call fcn.10092352
add esp, 4
test eax, eax
je 0x10005545
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
jmp 0x10005547
xor eax, eax
mov dword [0x101ed690], eax
mov dword [eax + 8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4