Function at 0x4654b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x727b12
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x96c07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x7b6c], 1
mov dword [ebp - 0x18], esi
jne 0x465e5b
mov eax, dword [ebp + 8]
or edi, 0xffffffff
mov ecx, dword [0x738560]
cmp eax, 1
je 0x46594e
cmp eax, 4
jne 0x465535
mov eax, dword [ebx + 0x12f8]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x465522
push dword [ebx + 0x7ae8]
jmp 0x46552d
cmp eax, 2
jne 0x46552f
push dword [ebx + 0x7af0]
call ecx
inc dword [ebx + 0x7ac8]
mov ecx, dword [ebx + 0x7ac8]
test ecx, ecx
js 0x4658e7
cmp ecx, dword [ebx + 0x12e8]
jge 0x4658e7
mov eax, dword [ebx + 0x12e4]
lea eax, [eax + ecx*8]
mov dword [ebx + 0x12f8], eax
cmp dword [eax + 4], esi
jle 0x465587
cmp dword [ebx + 0x7adc], esi
jne 0x465587
push 0
push 0
push ebx
push 0x466790
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0x7ad0], eax
mov eax, dword [ebx + 0x12f8]
mov ecx, 0x93dbf8
mov eax, dword [eax]
mov dword [ebx + 0x12f4], eax
push dword [eax + 0xc]
call fcn.00405440
push eax
call fcn.00403040
add esp, 8
mov dword [ebp - 0x24], esi
nop
mov ecx, dword [ebx + 0x12f4]
mov eax, dword [ecx + 0x7c]
test eax, eax
js 0x4658c4
cmp eax, dword [ecx + 0x78]
jge 0x4658c4
mov edx, dword [ecx + eax*4 + 0x80]
inc eax
mov dword [ecx + 0x7c], eax
test edx, edx
js 0x4658e2
cmp edx, dword [0x9864b8]
jge 0x4658e2
mov eax, dword [0x9864b4]
lea ecx, [eax + edx*8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004502d0
mov dword [ebp - 4], 0
cmp dword [0x98617c], 0
je 0x465650
push 5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004173a0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
or esi, 1
mov ecx, 0x93dc44
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call fcn.00405440
test eax, eax
je 0x465982
push eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.00631418
add esp, 8
mov byte [ebp - 0xd], 1
test eax, eax
je 0x465654
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test al, 1
je 0x465682
mov edx, dword [ebp - 0x2c]
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465682
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x465737
mov esi, dword [ebp - 0x1c]
mov eax, 5
mov dword [ebp - 0x20], eax
mov edi, dword [esi - 0xc]
cmp edi, eax
jge 0x4656a7
mov eax, edi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x4656f0
sub edi, eax
cmp dword [esi - 4], 1
jle 0x4656c0
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404300
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
lea ecx, [edi*2 + 2]
push ecx
lea eax, [esi + eax*2]
push eax
push ecx
push esi
call fcn.00414500
add esp, 0x10
test edi, edi
js 0x465872
cmp edi, dword [esi - 8]
jg 0x465872
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x1c]
mov ecx, 0x93dc70
push eax
call fcn.00405440
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00412be0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00407840
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465737
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x12f4]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.00404680
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
mov eax, dword [0x985aa0]
add eax, 0xfffffff0
push eax
call fcn.00404680
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
add eax, 0x1308
mov ebx, dword [ebp - 0x1c]
push dword [ebx - 0xc]
push ebx
push eax
call fcn.0063abb4
mov ecx, dword [ebx - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2 + 0x1308], dx
add eax, 0x5398
push dword [edi - 0xc]
push edi
push eax
call fcn.0063abb4
mov ecx, dword [edi - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2 + 0x5398], dx
add eax, 0x57a8
push dword [esi - 0xc]
push esi
push eax
call fcn.0063abb4
mov ecx, dword [esi - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
add esp, 0x2c
mov word [eax + ecx*2 + 0x57a8], dx
mov ecx, dword [eax + 0x1300]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4657ee
add eax, 0x1304
push eax
call ecx
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1300]
mov dword [eax + 0x7acc], edx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x46580b
push edx
call eax
add esp, 4
test eax, eax
jne 0x46587c
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x465827
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
test eax, eax
jg 0x4655b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4655b0
push 0x80070057
call fcn.004045b0
mov ebx, dword [ebp - 0x14]
push 0
push 0
push ebx
push 0x465e70
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0x12fc], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], 1
call fcn.00404740
lea ecx, [ebp - 0x20]
call fcn.00404740
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404740
or edi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, 1
test ecx, ecx
cmovne eax, dword [ebp + 8]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
cmovne eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x465944
call fcn.004dfab0
mov ecx, 0x93dca0
mov dword [ebx + 0x7b6c], esi
call fcn.00405440
push eax
call fcn.00403040
add esp, 4
cmp dword [ebx + 0x7adc], esi
jne 0x465926
push 0
push 0
push ebx
push 0x466790
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0x7ad0], eax
jmp 0x465944
cmp dword [ebx + 0x7ae0], esi
jne 0x465944
mov ecx, 0x93dcf0
call fcn.00405440
push eax
lea ecx, [ebx + 0x1188]
call fcn.004e5295
cmp dword [ebp + 8], 1
jne 0x465e5b
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4659da
mov ecx, 0x93dd40
mov dword [ebx + 0x7b6c], 0
call fcn.00405440
push eax
call fcn.00403040
add esp, 4
call fcn.004dffc5
mov ecx, eax
test ecx, ecx
jne 0x46598c
push 0x80004005
call fcn.004045b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0xffffffffffffffff
mov ecx, 0x93dd90
mov dword [ebp - 4], 5
call fcn.00405440
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404030
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x465e5b
mov ecx, dword [edx]
push edx
jmp 0x465e56
mov eax, dword [ebx + 0x1300]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4659f2
push dword [ebx + 0x7acc]
call eax
add esp, 4
mov eax, dword [ebx + 0x1300]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x465a0a
push dword [ebx + 0x7acc]
call eax
add esp, 4
mov ecx, dword [ebx + 0x7ac8]
test ecx, ecx
js 0x4658e2
cmp ecx, dword [ebx + 0x12e8]
jge 0x4658e2
mov eax, dword [ebx + 0x12e4]
mov eax, dword [eax + ecx*8]
mov dword [ebx + 0x12f4], eax
call fcn.004dffc5
mov ecx, eax
test ecx, ecx
jne 0x465a48
push 0x80004005
call fcn.004045b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 6
cmp esi, 1
je 0x465d57
mov ecx, dword [ebx + 0x12f4]
mov eax, dword [ecx + 0x7c]
test eax, eax
js 0x465d6a
cmp eax, dword [ecx + 0x78]
jge 0x465d6a
mov edx, dword [ecx + eax*4 + 0x80]
inc eax
mov dword [ecx + 0x7c], eax
test edx, edx
js 0x4658e2
cmp edx, dword [0x9864b8]
jge 0x4658e2
mov eax, dword [0x9864b4]
lea ecx, [eax + edx*8]
lea eax, [ebp + 0xc]
push eax
call fcn.004502d0
mov byte [ebp - 4], 7
cmp dword [0x98617c], 0
je 0x465aff
push 5
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xc]
call fcn.004173a0
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, 0x93dddc
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.00405440
test eax, eax
je 0x465982
push eax
push dword [esi]
call fcn.00631418
add esp, 8
mov byte [ebp + 0xb], 1
test eax, eax
je 0x465b03
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test al, 2
je 0x465b31
mov edx, dword [ebp - 0x30]
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465b31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x465be6
mov esi, dword [ebp + 0xc]
mov eax, 5
mov dword [ebp + 8], eax
mov edi, dword [esi - 0xc]
cmp edi, eax
jge 0x465b56
mov eax, edi
mov dword [ebp + 8], eax
test eax, eax
jle 0x465b9f
sub edi, eax
cmp dword [esi - 4], 1
jle 0x465b6f
push dword [esi - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404300
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [edi*2 + 2]
push ecx
lea eax, [esi + eax*2]
push eax
push ecx
push esi
call fcn.00414500
add esp, 0x10
test edi, edi
js 0x465872
cmp edi, dword [esi - 8]
jg 0x465872
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp + 0xc]
mov ecx, 0x93de08
push eax
call fcn.00405440
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412be0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.00407840
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465be6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x12f4]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.00404680
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xa
mov eax, dword [0x985aa0]
add eax, 0xfffffff0
push eax
call fcn.00404680
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
add eax, 0x1308
mov ebx, dword [ebp + 0xc]
push dword [ebx - 0xc]
push ebx
push eax
call fcn.0063abb4
mov ecx, dword [ebx - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2 + 0x1308], dx
add eax, 0x5398
push dword [edi - 0xc]
push edi
push eax
call fcn.0063abb4
mov ecx, dword [edi - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2 + 0x5398], dx
add eax, 0x57a8
push dword [esi - 0xc]
push esi
push eax
call fcn.0063abb4
mov ecx, dword [esi - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x14]
add esp, 0x2c
mov word [eax + ecx*2 + 0x57a8], dx
mov ecx, dword [eax + 0x1300]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x465c9d
add eax, 0x1304
push eax
call ecx
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1300]
mov dword [eax + 0x7acc], edx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x465cba
push edx
call eax
add esp, 4
test eax, eax
jne 0x465d1b
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x465cd6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465cf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [ebp - 0x14]
test eax, eax
jg 0x465a63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x465a63
mov ebx, dword [ebp - 0x14]
push 0
push 0
push ebx
push 0x465e70
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0x12fc], eax
lea ecx, [ebp + 8]
call fcn.00404740
lea ecx, [ebp - 0x28]
call fcn.00404740
lea ecx, [ebp + 0xc]
call fcn.00404740
jmp 0x465e39
mov ecx, 0x93de38
call fcn.00405440
push eax
lea ecx, [ebp - 0x1c]
call fcn.004041b0
mov eax, dword [ebx + 0x12f4]
cmp dword [eax + 0x48], 0
je 0x465dd7
mov esi, dword [ebp - 0x1c]
mov ecx, 0x93de88
push esi
mov dword [ebx + 0x7b6c], 0
call fcn.00405440
push eax
call fcn.00403040
add esp, 8
mov ecx, 0x93def4
push 0xa
call fcn.00405440
push ecx
mov edi, esp
push eax
mov eax, dword [ebx + 0x12f4]
add eax, 8
push eax
push edi
call fcn.004031b0
mov edx, 1
add esp, 0xc
lea ecx, [edx + 0xf]
call fcn.0042c1d0
add esp, 8
mov ecx, ebx
push 0
push 1
call fcn.00468990
jmp 0x465e3c
mov eax, dword [ebx + 0x12f8]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x465ded
push dword [ebx + 0x7ae8]
jmp 0x465df8
cmp eax, 2
jne 0x465dff
push dword [ebx + 0x7af0]
mov eax, dword [0x738560]
call eax
mov eax, dword [ebx + 0x12f8]
cmp dword [eax + 4], 0
jle 0x465e21
mov ecx, 0x93df20
call fcn.00405440
push eax
lea ecx, [ebx + 0x1188]
call fcn.004e5295
inc dword [ebx + 0x7ac8]
push 0
push 0
push 0x4c8
push dword [ebx + 0x20]
call dword [0x73895c]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x465e5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8