Function at 0x4022f0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4a913b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.00402ef0
test eax, eax
jne 0x402557
mov ecx, dword [esi + 0x18]
call fcn.0043d5c0
test eax, eax
jne 0x402557
push ebx
lea eax, [esp + 0x18]
push ebp
push eax
push 4
xor ebx, ebx
push esi
push 0x4022b0
push ebx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x40253c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [esp + 0x10], ebx
push 0x14
call esi
lea ecx, [esp + 0x10]
push ecx
push ebp
call edi
cmp dword [esp + 0x10], 0x103
jne 0x402530
inc ebx
cmp ebx, 0x32
jl 0x402375
push ebp
lea ecx, [esp + 0x28]
call fcn.00427380
mov ecx, 0x4d1ad0
mov dword [esp + 0xa4], 0
call fcn.0047ee50
mov ecx, eax
call fcn.0043c810
mov edi, eax
lea ecx, [esp + 0x24]
add edi, 4
call fcn.00427b70
mov ebx, dword [edi]
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x40247e
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x14], edx
jge 0x4023f4
lea edx, [eax - 0xc]
cmp edx, dword [0x4c2084]
jne 0x4023fa
mov edx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
jge 0x402442
mov edi, dword [ebx - 8]
cmp ecx, 1
jg 0x402407
cmp edi, dword [eax - 4]
jle 0x40241a
mov ecx, esi
call fcn.00405a90
push edi
mov ecx, esi
call fcn.004056f0
test eax, eax
je 0x40247e
mov ecx, dword [esi]
lea ebp, [edi + edi]
push ebp
lea eax, [edi + edi + 2]
push ebx
push eax
push ecx
call fcn.00404a40
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebp], 0
mov ebp, dword [esp + 0x18]
jmp 0x40247e
mov ecx, dword [0x4c2084]
add eax, 0xfffffff4
cmp eax, ecx
je 0x402470
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402468
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov ecx, dword [0x4c2080]
mov dword [esi], ecx
mov edi, dword [edi]
mov dword [esi], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, 0x4d1ad0
call fcn.0047ee50
mov ecx, eax
call fcn.0043c810
mov edx, dword [eax + 8]
mov ecx, 0x4d1ad0
push edx
call fcn.0047ee50
mov ecx, eax
call fcn.0043c820
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004282a0
push 0xec54
lea ecx, [esp + 0x28]
mov dword [eax], esi
call fcn.00427b80
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4d1b84
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d1bb8]
lea edx, [esp + 0x2c]
push 0x4d1b84
mov dword [esp + 0x38], ecx
mov dword [0x4d1bb8], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4d1b58]
push 0
push 0x405f10
push esi
push 0xcd
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00427500
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
pop edi
mov eax, dword [esi + 0x24]
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
add esp, 0x98
ret
mov ecx, esi
call fcn.00401e40
mov ecx, dword [esp + 0x90]
pop esi
mov dword fs:[0], ecx
add esp, 0x98
ret