Function at 0x11122e0
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 0x111268e
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 0x111268d
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 0x1112369
dec edi
or edi, 0xfffffff0
inc edi
mov ecx, dword [ebx + edi*4 + 0x1c83c]
test ecx, ecx
je 0x11123ad
mov eax, ecx
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1112380
sub eax, ebx
push eax
push ecx
call fcn.010619c0
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 0x1112351
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x11123bf
xor eax, eax
jmp 0x11123d4
cmp word [ecx], 0
mov eax, ecx
je 0x11123d0
add eax, 2
cmp word [eax], 0
jne 0x11123c7
sub eax, ecx
sar eax, 1
push eax
push ecx
call fcn.01061b00
mov dword [ebp - 8], eax
test eax, eax
je 0x11125fb
xor esi, esi
xor ecx, ecx
lea ebx, [ebx]
mov eax, dword [ebp + ecx*4 - 0x74]
test eax, eax
je 0x1112413
test ecx, ecx
je 0x11123fd
inc esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1112400
sub eax, edi
inc ecx
cmp ecx, 8
lea esi, [esi + eax + 2]
jl 0x11123f0
test esi, esi
je 0x11125ea
add esi, 1
je 0x11125ea
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 0x11125e7
xor edi, edi
mov dword [ebp + 0xc], edi
jmp 0x1112449
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + edi*4 - 0x74]
test esi, esi
je 0x1112558
push 0x41
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test edi, edi
je 0x1112493
lea edi, [ebp - 0x500]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1112473
mov cx, word [0x101e6d8]
mov word [edi], cx
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1112488
mov word [edi], cx
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1112496
mov cx, word [0x100fcdc]
mov eax, esi
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x11124b0
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 0x11124c0
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 0x11124e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + eax*4 - 0xfc]
mov dx, word [0x100fcdc]
push ecx
push 0x101e6d0
mov word [edi], dx
lea edx, [ebp - 0xb8]
push 0x3f
push edx
call fcn.0102ac00
lea eax, [ebp - 0xb8]
add esp, 0x10
mov ecx, eax
jmp 0x1112520
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1112520
lea edi, [ebp - 0x500]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1112532
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 0x1112446
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 0x111258d
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.0103fc10
cmp eax, 0x47
je 0x11125b2
cmp eax, 0x42
je 0x11125b2
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 0x101e680
push ecx
call fcn.0102d820
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 0x1112601
mov edi, dword [sym.imp.msvcrt.dll_free]
lea eax, [ebx + 0x14f98]
test eax, eax
je 0x1112612
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 4]
test esi, esi
je 0x1112667
mov eax, dword [ebx]
cmp dword [eax + 0xa54], 0
jne 0x1112667
push 0xd
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x1112667
mov ecx, dword [ebp - 0xc]
lea edx, [ebp + 8]
push edx
push 0
push eax
push 0x110bf90
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 0x1112667
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 0x1112686
push eax
call edi
add esp, 4
mov dword [ebp + esi*4 - 0x74], 0
inc esi
cmp esi, 0x10
jl 0x1112670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14