Function at 0x455980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7266ca
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 - 0x28], esi
cmp dword [ebx + 0x7b00], 1
mov dword [ebp - 0x18], esi
jne 0x456388
mov eax, dword [ebp + 8]
or edi, 0xffffffff
cmp eax, 1
je 0x455e1d
cmp eax, 4
jne 0x4559e1
inc dword [ebx + 0x7700]
call fcn.004563c0
mov ecx, dword [ebx + 0x7700]
test ecx, ecx
js 0x455db7
cmp ecx, dword [ebx + 0x7714]
jge 0x455db7
mov eax, dword [ebx + 0x7710]
mov eax, dword [eax + ecx*8]
mov ecx, 0x935d90
mov dword [ebx + 0x7708], eax
push dword [eax + 8]
call fcn.00405440
push eax
call fcn.00403040
mov eax, dword [ebx + 0x7708]
add esp, 8
add eax, 0xc
mov ecx, 0x935ddc
push eax
call fcn.00405440
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412be0
add esp, 0xc
mov dword [ebp - 4], 0
push dword [eax]
mov ecx, dword [ebx + 0x5d8]
call fcn.004e5295
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455a76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
nop dword [eax]
mov ecx, dword [ebx + 0x7708]
mov eax, dword [ecx + 0x7c]
test eax, eax
js 0x455d94
cmp eax, dword [ecx + 0x78]
jge 0x455d94
mov edx, dword [ecx + eax*4 + 0x80]
inc eax
mov dword [ecx + 0x7c], eax
test edx, edx
js 0x455db2
cmp edx, dword [0x9864b8]
jge 0x455db2
mov eax, dword [0x9864b4]
lea ecx, [eax + edx*8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004502d0
mov dword [ebp - 4], 1
cmp dword [0x98617c], 0
je 0x455b20
push 5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004173a0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
or esi, 1
mov ecx, 0x935e08
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
call fcn.00405440
test eax, eax
je 0x455e78
push eax
mov eax, dword [ebp - 0x20]
push dword [eax]
call fcn.00631418
add esp, 8
mov byte [ebp - 0xd], 1
test eax, eax
je 0x455b24
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test al, 1
je 0x455b52
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 0x455b52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x455c07
mov esi, dword [ebp - 0x1c]
mov eax, 5
mov dword [ebp - 0x20], eax
mov edi, dword [esi - 0xc]
cmp edi, eax
jge 0x455b77
mov eax, edi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x455bc0
sub edi, eax
cmp dword [esi - 4], 1
jle 0x455b90
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 0x455d42
cmp edi, dword [esi - 8]
jg 0x455d42
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x1c]
mov ecx, 0x935e34
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], 3
call fcn.00407840
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455c07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x7708]
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], 4
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], 5
add eax, 0xf40
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 + 0xf40], dx
add eax, 0x4fd0
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 + 0x4fd0], dx
add eax, 0x53e0
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 + 0x53e0], dx
mov ecx, dword [eax + 0xf38]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x455cbe
add eax, 0xf3c
push eax
call ecx
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xf38]
mov dword [eax + 0x7704], edx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x455cdb
push edx
call eax
add esp, 4
test eax, eax
jne 0x455d4c
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x455cf7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455d15
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 0x455a80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x455a80
push 0x80070057
call fcn.004045b0
mov ebx, dword [ebp - 0x14]
push 0
push 0
push ebx
push 0x456b80
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0xf34], 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 0x455e13
call fcn.004dfab0
mov ecx, 0x935e60
mov dword [ebx + 0x7b00], esi
call fcn.00405440
push eax
call fcn.00403040
add esp, 4
mov ecx, ebx
push 0
call fcn.004569b0
push 1
lea ecx, [ebx + 0xd0]
call fcn.004e472c
push 0
lea ecx, [ebx + 0x3d0]
call fcn.004e52e6
push 0
push 0
push 0xf0
push dword [ebx + 0x7830]
call dword [0x738944]
test eax, eax
je 0x455e13
mov ecx, ebx
call fcn.00455510
cmp dword [ebp + 8], 1
jne 0x456388
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x455ec1
mov ecx, 0x935eb0
mov dword [ebx + 0x7b00], 0
call fcn.00405440
push eax
call fcn.00403040
add esp, 4
lea ecx, [ebx + 0x3d0]
push 0
call fcn.004e52e6
mov ecx, 0x935f00
call fcn.00405440
push eax
push 1
push 0x986518
call fcn.0042ac00
add esp, 0xc
call fcn.004dffc5
mov ecx, eax
test ecx, ecx
jne 0x455e82
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, 0x935f50
mov dword [ebp - 4], 6
call fcn.00405440
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404030
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebx + 0x790]
push esi
call fcn.004e5295
jmp 0x45636c
mov eax, dword [ebx + 0xf38]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x455ed9
push dword [ebx + 0x7704]
call eax
add esp, 4
mov eax, dword [ebx + 0xf38]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x455ef1
push dword [ebx + 0x7704]
call eax
add esp, 4
mov ecx, dword [ebx + 0x7700]
test ecx, ecx
js 0x455db2
cmp ecx, dword [ebx + 0x7714]
jge 0x455db2
mov eax, dword [ebx + 0x7710]
mov eax, dword [eax + ecx*8]
mov ecx, 0x935f9c
mov dword [ebx + 0x7708], eax
add eax, 0xc
push eax
call fcn.00405440
push eax
lea eax, [ebp + 8]
push eax
call fcn.00412be0
add esp, 0xc
mov dword [ebp - 4], 7
push dword [eax]
mov ecx, dword [ebx + 0x5d8]
call fcn.004e5295
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455f6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004dffc5
mov ecx, eax
test ecx, ecx
jne 0x455f7f
push 0x80004005
call fcn.004045b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 8
cmp esi, 1
je 0x45629e
nop word [eax + eax]
mov ecx, dword [ebx + 0x7708]
mov eax, dword [ecx + 0x7c]
test eax, eax
js 0x456297
cmp eax, dword [ecx + 0x78]
jge 0x456297
mov edx, dword [ecx + eax*4 + 0x80]
inc eax
mov dword [ecx + 0x7c], eax
test edx, edx
js 0x455db2
cmp edx, dword [0x9864b8]
jge 0x455db2
mov eax, dword [0x9864b4]
lea ecx, [eax + edx*8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004502d0
mov byte [ebp - 4], 9
cmp dword [0x98617c], 0
je 0x45603c
push 5
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004173a0
mov esi, eax
mov byte [ebp - 4], 0xa
mov ecx, 0x935fc8
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
call fcn.00405440
test eax, eax
je 0x455e78
push eax
push dword [esi]
call fcn.00631418
add esp, 8
mov byte [ebp + 0xb], 1
test eax, eax
je 0x456040
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x18]
test al, 2
je 0x45606e
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 0x45606e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x456123
mov esi, dword [ebp - 0x1c]
mov eax, 5
mov dword [ebp + 8], eax
mov edi, dword [esi - 0xc]
cmp edi, eax
jge 0x456093
mov eax, edi
mov dword [ebp + 8], eax
test eax, eax
jle 0x4560dc
sub edi, eax
cmp dword [esi - 4], 1
jle 0x4560ac
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00404300
mov esi, dword [ebp - 0x1c]
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 0x455d42
cmp edi, dword [esi - 8]
jg 0x455d42
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x1c]
mov ecx, 0x935ff4
push eax
call fcn.00405440
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412be0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00407840
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456123
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x7708]
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], 0xc
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], 0xd
add eax, 0xf40
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 + 0xf40], dx
add eax, 0x4fd0
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 + 0x4fd0], dx
add eax, 0x53e0
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 + 0x53e0], dx
mov ecx, dword [eax + 0xf38]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4561da
add eax, 0xf3c
push eax
call ecx
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xf38]
mov dword [eax + 0x7704], edx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4561f7
push edx
call eax
add esp, 4
test eax, eax
jne 0x456258
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x456213
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [ebp - 0x14]
test eax, eax
jg 0x455fa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x455fa0
mov ebx, dword [ebp - 0x14]
push 0
push 0
push ebx
push 0x456b80
push 0
push 0
call fcn.0062e2ef
add esp, 0x18
mov dword [ebx + 0xf34], eax
lea ecx, [ebp + 8]
call fcn.00404740
lea ecx, [ebp - 0x28]
call fcn.00404740
lea ecx, [ebp - 0x1c]
call fcn.00404740
or edi, 0xffffffff
jmp 0x456369
mov ecx, 0x936020
jmp 0x4562a3
mov ecx, 0x936070
call fcn.00405440
push eax
lea ecx, [ebp - 0x20]
call fcn.004041b0
mov eax, dword [ebx + 0x7708]
cmp dword [eax + 0x44], 0
je 0x456351
mov esi, dword [ebp - 0x20]
mov ecx, 0x9360c0
push esi
mov dword [ebx + 0x7b00], 0
call fcn.00405440
push eax
call fcn.00403040
add esp, 8
lea ecx, [ebx + 0x3d0]
push 0
call fcn.004e52e6
lea ecx, [ebp + 8]
call fcn.00404250
push dword [ebp + 0xc]
mov ecx, 0x936130
mov byte [ebp - 4], 0xe
call fcn.00405440
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404030
mov ecx, dword [ebx + 0x790]
add esp, 0xc
push dword [ebp + 8]
call fcn.004e5295
mov eax, dword [ebx + 0x7708]
mov ecx, 0x936180
push esi
push dword [eax + 8]
call fcn.00405440
push eax
push 1
push 0x986518
call fcn.0042ac00
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.00404740
jmp 0x45636c
inc dword [ebx + 0x7700]
push 0
push 0
push 0x4c8
push dword [ebx + 0x20]
call dword [0x73895c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x456388
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