Function at 0x4111e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x6c
mov eax, dword [0x427014]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
xor ebx, ebx
push edi
cmp dword [esi + 0x40c], ebx
je 0x41152b
cmp dword [esp + 0x80], ebx
je 0x4114c6
cmp ebp, ebx
je 0x4114c6
cmp dword [esi + 0x41c], ebp
je 0x411462
mov eax, dword [esi + 0x410]
lea edi, [esi + 0x410]
mov dword [esi + 0x41c], ebp
cmp eax, ebx
je 0x411244
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
cmp ebp, ebx
jle 0x411462
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, 1
mov word [esp + 0x18], ax
mov eax, 0x10
mov word [esp + 0x26], ax
xor eax, eax
mov edx, 4
mov word [esp + 0x24], dx
mov dword [esp + 0x40], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x40], edx
push ebx
mov ecx, 2
mov word [esp + 0x1e], cx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x40c]
xor ecx, ecx
add ebp, ebp
lea edx, [esp + 0x38]
mov dword [esp + 0x24], 0xac44
mov dword [esp + 0x28], 0x2b110
mov word [esp + 0x30], cx
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x3c], 0x18180
add ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x4114b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4114b0
mov edx, 0x4d82
mov word [esp + 0x5a], dx
push edi
mov ecx, 0x7524
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 0x6825a449
mov word [esp + 0x5c], cx
mov byte [esp + 0x60], 0x92
mov byte [esp + 0x61], 0xf
mov byte [esp + 0x62], 0x50
mov byte [esp + 0x63], 0xe3
mov byte [esp + 0x64], 0x6a
mov byte [esp + 0x65], 0xb3
mov byte [esp + 0x66], 0xab
mov byte [esp + 0x67], 0x1e
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx]
call eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x2c], ebx
jl 0x4114b0
mov eax, dword [edi]
cmp eax, ebx
je 0x4114b0
mov edx, 0x11d0
mov word [esp + 0x6a], dx
lea edx, [esp + 0x10]
push edx
mov ecx, 0x89cd
lea edx, [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x68], 0xb0210783
mov word [esp + 0x6c], cx
mov byte [esp + 0x70], 0xaf
mov byte [esp + 0x71], 8
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], 0xa0
mov byte [esp + 0x74], 0xc9
mov byte [esp + 0x75], 0x25
mov byte [esp + 0x76], 0xcd
mov byte [esp + 0x77], 0x16
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x41148e
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41148e
mov edx, dword [esi + 0x400]
mov dword [esp + 0x48], edx
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x404]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], ebx
mov edx, dword [ecx]
push 2
push ecx
mov ecx, dword [edx + 0xc]
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
lea ecx, [esi + 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push ebx
push esi
push 0x411130
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
mov dword [esi + 0x414], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push 1
push ebx
push ebx
push edi
call eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x424], eax
mov dword [esi + 0x428], ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0041153d
add esp, 0x6c
ret
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x40c], ebx
mov dword [edi], ebx
jmp 0x411519
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x40c], ebx
jmp 0x411519
or edi, 0xffffffff
cmp dword [esi + 0x414], edi
je 0x411501
push 1
lea edx, [esi + 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x414]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x414], edi
mov eax, dword [esi + 0x410]
cmp eax, ebx
je 0x411519
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x410], ebx
mov dword [esi + 0x428], ebx
mov dword [esi + 0x424], ebx
mov dword [esi + 0x41c], ebx
mov ecx, dword [esp + 0x74]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041153d
add esp, 0x6c
ret