Function at 0x4054a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 0
push 0x40c840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x590508
call fcn.0040a8f0
mov dword [ebp - 0xc], eax
mov eax, dword [0x590508]
test eax, eax
jle 0x4058a2
xor esi, esi
test eax, eax
jle 0x405549
mov edi, 0x590514
mov ecx, dword [edi]
test ecx, ecx
je 0x405594
mov eax, dword [0x5900e4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405518
test dx, dx
je 0x405514
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405518
add eax, 4
add ecx, 4
test dx, dx
jne 0x4054f2
xor eax, eax
jmp 0x40551d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40553c
push ecx
mov dword [ebp - 0xc], esp
mov ecx, esp
push edi
call fcn.004023a0
call fcn.0040afe0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40559e
mov eax, dword [0x590508]
inc esi
add edi, 0x10
cmp esi, eax
jl 0x4054e3
mov dword [ebp - 4], 0
test eax, eax
jle 0x405851
mov dword [ebp - 8], 0x590514
nop
mov eax, dword [ebp - 8]
mov esi, dword [eax]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4055f0
cmp eax, dword [esi - 0x10]
jne 0x4055f0
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405620
push 0x80004005
call fcn.00402b70
mov dword [0x58f9cc], esi
shl esi, 4
lea eax, [esi + 0x590514]
push eax
mov ecx, 0x590564
call fcn.00402580
lea eax, [esi + 0x59050c]
push eax
mov ecx, 0x59055c
call fcn.00402580
lea eax, [esi + 0x590510]
push eax
mov ecx, 0x590560
call fcn.00402580
lea eax, [esi + 0x590518]
push eax
mov ecx, 0x590568
call fcn.00402580
jmp 0x405862
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405650
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00511fa2
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.0040afe0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x405655
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x10
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x590508]
jl 0x405560
jmp 0x405851
call fcn.00402a80
mov edi, dword [ebp - 4]
mov esi, dword [0x590564]
mov dword [0x58f9cc], edi
shl edi, 4
mov ecx, dword [edi + 0x590514]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4056c5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4056b6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4056b6
push eax
call fcn.00402510
mov dword [ebp - 8], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4056a8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [0x590564], ecx
jmp 0x4056c5
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, 0x590564
call fcn.00402bc0
mov ecx, dword [edi + 0x59050c]
mov esi, dword [0x59055c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x405729
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40571a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40571a
push eax
call fcn.00402510
mov dword [ebp - 8], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40570c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [0x59055c], ecx
jmp 0x405729
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, 0x59055c
call fcn.00402bc0
mov ecx, dword [edi + 0x590510]
mov esi, dword [0x590560]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40578d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40577e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40577e
push eax
call fcn.00402510
mov dword [ebp - 8], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x405770
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [0x590560], ecx
jmp 0x40578d
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, 0x590560
call fcn.00402bc0
mov ecx, dword [edi + 0x590518]
mov esi, dword [0x590568]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4057f1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4057e2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4057e2
push eax
call fcn.00402510
mov dword [ebp - 8], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4057d4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [0x590568], ecx
jmp 0x4057f1
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, 0x590568
call fcn.00402bc0
mov edi, dword [edi + 0x590514]
mov esi, dword [0x5900e4]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x405851
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x405842
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x405842
push eax
call fcn.00402510
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x405837
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [0x5900e4], edi
jmp 0x405851
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, 0x5900e4
call fcn.00402bc0
mov ecx, dword [0x590508]
cmp dword [ebp - 4], ecx
jne 0x405862
cmp dword [ebp - 0xc], 0
je 0x4058a2
call fcn.0040b200
call fcn.0040b7d0
cmp dword [0x58f9c4], 0
je 0x4058a2
cmp dword [0x58f9c8], 0
je 0x4058a2
cmp dword [0x58f980], 0
mov dword [ebp - 0xc], 0
je 0x4058a2
lea edx, [ebp - 0xc]
push edx
push 0
push str.SetProductInfo
call dword [0x58f97c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret