Function at 0x421150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5802ad
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5e3f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [0x5ed258]
mov eax, dword [0x5ed25c]
mov dword [0x5ed148], 0
lea esi, [ecx + eax*2]
mov byte [ebp - 4], 2
call fcn.00421e97
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x42137c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x4211f1
test esi, 0xffff0000
jne 0x4211d6
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.00402c00
jmp 0x4211fd
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4211e0
sub ecx, edx
sar ecx, 1
jmp 0x4211f3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004030f0
mov eax, dword [ebp - 0x10]
mov edx, 0x5c5310
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x42122d
test si, si
je 0x421229
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42122d
add ecx, 4
add edx, 4
test si, si
jne 0x421207
xor edx, edx
jmp 0x421232
sbb edx, edx
or edx, 1
xor ecx, ecx
mov byte [ebp - 4], 1
test edx, edx
lea edx, [eax - 0x10]
sete cl
or edi, 0xffffffff
mov dword [0x5ed14c], ecx
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42125d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.TRUE
lea ecx, [ebp + 8]
call fcn.0040b820
call fcn.00421810
test al, al
je 0x421339
push 0
push 0
push 0x41e850
call fcn.00568448
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5ed1d8], 0
je 0x421339
cmp dword [0x5ed154], 0
je 0x421339
push 0x96
lea eax, [ebp - 0x14]
mov ecx, 0x5ed16c
push eax
call fcn.00407040
mov esi, dword [eax]
mov byte [ebp - 4], 6
call fcn.00421e97
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x421386
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00407550
test al, al
jne 0x421305
push esi
lea ecx, [ebp - 0x10]
call fcn.00407650
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42131f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421339
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421353
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42136b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403280
push 0x80004005
call fcn.00403280
int3