Function at 0x110ead0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3550]
test dword [eax + 0x1c4], 0x800000
je 0x110ee7e
push esi
xor esi, esi
push 0x44
lea ecx, [ebp - 0x74]
push esi
push ecx
mov dword [ebp - 0xc], esi
call sub.msvcrt.dll_memset
push 0x44
lea edx, [ebp - 0xfc]
push esi
push edx
call sub.msvcrt.dll_memset
push 0x401
lea eax, [ebp - 0x500]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebx + 0x14f98]
add esp, 0x24
cmp eax, esi
je 0x110ee7d
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [ebx + 0x1c8c8]
sub edi, esi
add edi, 0xf
and edi, 0x8000000f
jns 0x110eb59
dec edi
or edi, 0xfffffff0
inc edi
mov ecx, dword [ebx + edi*4 + 0x1c83c]
test ecx, ecx
je 0x110eb9d
mov eax, ecx
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x110eb70
sub eax, ebx
push eax
push ecx
call fcn.010602f0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edi*4 + 0x1c880]
mov dword [ebp + esi*4 - 0x74], eax
mov dword [ebp + esi*4 - 0xfc], edx
inc esi
cmp esi, 0x10
mov ebx, ecx
jl 0x110eb41
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x110ebaf
xor eax, eax
jmp 0x110ebc4
cmp word [ecx], 0
mov eax, ecx
je 0x110ebc0
add eax, 2
cmp word [eax], 0
jne 0x110ebb7
sub eax, ecx
sar eax, 1
push eax
push ecx
call fcn.01060430
mov dword [ebp - 8], eax
test eax, eax
je 0x110edeb
xor esi, esi
xor ecx, ecx
lea ebx, [ebx]
mov eax, dword [ebp + ecx*4 - 0x74]
test eax, eax
je 0x110ec03
test ecx, ecx
je 0x110ebed
inc esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x110ebf0
sub eax, edi
inc ecx
cmp ecx, 8
lea esi, [esi + eax + 2]
jl 0x110ebe0
test esi, esi
je 0x110edda
add esi, 1
je 0x110edda
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x110edd7
xor edi, edi
mov dword [ebp + 0xc], edi
jmp 0x110ec39
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + edi*4 - 0x74]
test esi, esi
je 0x110ed48
push 0x41
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test edi, edi
je 0x110ec83
lea edi, [ebp - 0x500]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x110ec63
mov cx, word [0x101e498]
mov word [edi], cx
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x110ec78
mov word [edi], cx
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x110ec86
mov cx, word [0x100fe0c]
mov eax, esi
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x110eca0
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110ecb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x110ecd0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + eax*4 - 0xfc]
mov dx, word [0x100fe0c]
push ecx
push 0x101e490
mov word [edi], dx
lea edx, [ebp - 0xb8]
push 0x3f
push edx
call fcn.01029620
lea eax, [ebp - 0xb8]
add esp, 0x10
mov ecx, eax
jmp 0x110ed10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x110ed10
lea edi, [ebp - 0x500]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110ed22
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
and ecx, 3
cmp eax, 8
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], eax
jl 0x110ec36
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x110ed7d
push 0x20
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.msvcrt.dll__strlwr]
mov edx, dword [ebp + 0x14]
add esp, 4
push edx
call fcn.0103e610
cmp eax, 0x47
je 0x110eda2
cmp eax, 0x42
je 0x110eda2
mov eax, 0x55
lea ecx, [ebp - 0x500]
push ecx
push ebx
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0xc]
push 0x101e440
push ecx
call fcn.0102c210
add esp, 0x1c
push ebx
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
push edx
call edi
add esp, 4
jmp 0x110edf1
mov edi, dword [sym.imp.msvcrt.dll_free]
lea eax, [ebx + 0x14f98]
test eax, eax
je 0x110ee02
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 4]
test esi, esi
je 0x110ee57
mov eax, dword [ebx]
cmp dword [eax + 0xa54], 0
jne 0x110ee57
push 0xd
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x110ee57
mov ecx, dword [ebp - 0xc]
lea edx, [ebp + 8]
push edx
push 0
push eax
push 0x1108a00
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x110ee57
push eax
mov eax, dword [ebx + 0x1c0]
call eax
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x74]
test eax, eax
je 0x110ee76
push eax
call edi
add esp, 4
mov dword [ebp + esi*4 - 0x74], 0
inc esi
cmp esi, 0x10
jl 0x110ee60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14