Function at 0x477ec4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x477ecd
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x21]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
movsb byte es:[edi], byte [esi]
mov ebx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x21]
mov edx, dword [0x456e7c]
call fcn.004058c8
xor eax, eax
push ebp
push 0x4791fe
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045d498
test al, al
je 0x477f45
cmp byte [0x5d0920], 0
je 0x477f45
cmp dword [0x5d0918], 0
jne 0x477f45
mov eax, dword [0x5cc4d4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x477f45
mov byte [ebp - 0xb9], 1
jmp 0x479175
mov byte [ebp - 0xb9], 0
call fcn.0040eba0
fstp qword [0x5d09d4]
wait
mov eax, dword [ebp - 0x2c]
mov dword [0x5b969c], eax
mov dword [0x5d09dc], 1
xor edx, edx
push ebp
push 0x479150
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0040721c
mov byte [eax + 0x181], 1
mov ecx, dword [0x5d0890]
mov dl, 1
mov eax, dword [0x456db4]
call fcn.0047b3f0
mov dword [ebp - 0x6c], eax
xor edx, edx
push ebp
push 0x47913f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x28], 0
je 0x477fb5
mov eax, dword [ebp - 0x28]
mov dword [0x5d0950], eax
test bl, bl
je 0x477fc8
cmp dword [ebp - 0x28], 0
je 0x477fc8
mov eax, dword [ebp - 0x28]
sub eax, 5
mov dword [ebp - 0x28], eax
call fcn.00477b50
cmp edi, dword [0x5cd718]
je 0x477fdd
mov esi, dword [0x5cd718]
jmp 0x477fe5
mov esi, dword [0x5cbf80]
mov esi, dword [esi]
mov eax, dword [ebp - 0x28]
mov dword [0x5d0b74], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x5d0b70], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5d0b78], eax
cmp byte [0x5b9178], 0
je 0x478066
call fcn.00471230
call fcn.0045b8cc
mov ebx, eax
test ebx, ebx
je 0x47811e
mov edx, dword [ebx + 0x23]
mov eax, dword [0x5d08a0]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x1a0]
call fcn.004711e4
mov edx, dword [ebp - 0x1a0]
mov eax, dword [0x5d08a0]
call fcn.004314fc
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x5c]
call fcn.00404e44
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edx, eax
mov eax, dword [0x5d08a0]
call fcn.00431518
jmp 0x47811e
xor ebx, ebx
cmp dword [ebp - 0x28], 0
je 0x478082
mov dword [0x5d09dc], 0x65
mov eax, dword [ebp - 0x28]
call fcn.0045b988
mov ebx, eax
test ebx, ebx
je 0x47808c
cmp dword [ebx + 0x27], 0
jne 0x4780c0
mov dword [0x5d09dc], 0x66
mov eax, edi
call fcn.0045b8cc
mov ebx, eax
mov dword [0x5d09dc], 0x67
test ebx, ebx
je 0x4780b7
cmp dword [ebx + 0x27], 0
jne 0x4780c0
test esi, esi
je 0x4780c0
mov eax, esi
call fcn.0045b8cc
mov ebx, eax
mov edx, dword [ebx + 0x23]
mov eax, dword [0x5d08a0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x5d08a0]
test byte [eax + 0x335], 8
je 0x478105
test esi, esi
je 0x478105
mov edi, ebx
mov eax, esi
call fcn.0045b8cc
mov ebx, eax
test ebx, ebx
je 0x4780f4
cmp dword [ebx + 0x27], 0
jne 0x4780f8
mov ebx, edi
jmp 0x478105
mov edx, dword [ebx + 0x23]
mov eax, dword [0x5d08a0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [0x5d08a0]
call fcn.004314fc
mov edx, dword [ebx]
mov eax, dword [0x5d08a0]
call fcn.00431518
xor edx, edx
mov eax, dword [0x5d08a0]
call fcn.004316c0
lea ecx, [ebp - 0x1a4]
mov dl, 0x9a
mov eax, dword [0x5d08a0]
call fcn.0042f9f4
mov edx, dword [ebp - 0x1a4]
mov eax, 0x5b96b0
call fcn.004049bc
lea ecx, [ebp - 0x1a8]
mov dl, 0x9b
mov eax, dword [0x5d08a0]
call fcn.0042f9f4
mov edx, dword [ebp - 0x1a8]
mov eax, 0x5b96b4
call fcn.004049bc
mov dword [0x5d09dc], 0x68
call fcn.0042ee5c
test al, al
je 0x4781c2
mov eax, dword [0x5d08a0]
mov dx, word [0x479218]
not edx
and dx, word [eax + 0x318]
mov eax, dword [0x5d08a0]
call fcn.00431888
mov ecx, 0x479224
mov dl, 0x1a
mov eax, dword [0x5d08a0]
call fcn.0043146c
mov ecx, 0x479250
mov dl, 0x1b
mov eax, dword [0x5d08a0]
call fcn.0043146c
mov dword [0x5d09dc], 2
xor eax, eax
call fcn.004631e8
mov byte [ebp - 0xc1], 2
mov byte [ebp - 0xc2], 0
mov eax, dword [0x5d08a0]
mov al, byte [eax + 0x6a]
mov byte [0x5d0b2c], al
mov byte [0x5d0b2d], 0
cmp byte [ebp + 8], 2
je 0x478335
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x2ed], 0
je 0x478335
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.004743a4
pop ecx
mov dword [ebp - 0xc0], eax
mov dword [0x5d09dc], 0xc9
cmp dword [ebp - 0xc0], 0xffffffff
je 0x478335
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc0]
call fcn.0042f538
mov al, byte [eax + 0xc]
mov byte [ebp - 0xc2], al
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc0]
call fcn.0042f538
mov al, byte [eax + 0xb]
mov byte [ebp - 0xc1], al
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc0]
call fcn.0042f538
movzx eax, byte [eax + 0xa]
cmp eax, 4
ja case.default.0x47828c
jmp dword [eax*4 + 0x478293]
mov byte [0x5d0b2c], 0
jmp case.default.0x47828c
mov eax, dword [0x5d08a0]
mov al, byte [eax + 0x6a]
mov byte [0x5d0b2c], al
jmp case.default.0x47828c
mov byte [0x5d0b2c], 1
jmp case.default.0x47828c
mov byte [0x5d0b2c], 2
jmp case.default.0x47828c
mov byte [0x5d0b2c], 3
mov byte [0x5d0b2d], 1
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc0]
call fcn.0042f538
mov eax, dword [eax + 5]
lea edx, [ebp - 0x1ac]
call fcn.0042e1e4
cmp dword [ebp - 0x1ac], 0
je 0x478335
mov eax, dword [0x5d08a0]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0xc0]
call fcn.0042f538
mov eax, dword [eax + 5]
lea edx, [ebp - 0x1b0]
call fcn.0042e1e4
mov eax, dword [ebp - 0x1b0]
call fcn.004631e8
call fcn.00477ab8
mov byte [ebp - 0xba], al
mov dword [0x5d09dc], 3
cmp byte [ebp - 0xc1], 2
jne 0x4790e1
cmp dword [ebp - 0x14], 0
jne 0x478365
call fcn.00459644
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x478379
call fcn.0040721c
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x20], 0
jne 0x47839b
call fcn.0040721c
cmp dword [eax + 0x64], 0
je 0x47839b
call fcn.0040721c
lea eax, [eax + 0x64]
mov dword [ebp - 0x20], eax
mov edx, 0xcc
mov eax, dword [ebp - 0x20]
call fcn.0042e71c
test al, al
jne 0x4783b1
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4783c5
call fcn.0040721c
lea eax, [eax + 0x130]
mov dword [ebp - 0x1c], eax
mov edx, 0x50
mov eax, dword [ebp - 0x1c]
call fcn.0042e71c
test al, al
jne 0x4783db
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5d0954], eax
mov dword [0x5d09dc], 4
cmp dword [0x5d0988], 0
je 0x47840e
mov edx, dword [ebp - 0x28]
add edx, 5
mov eax, dword [0x5d0988]
call fcn.00461538
test al, al
jne 0x478853
cmp dword [0x5b9688], 0
je 0x478421
mov eax, dword [0x5b9688]
call fcn.00403a78
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x47844f
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov al, byte [0x479260]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.00462fc4
mov dword [0x5b9688], eax
jmp 0x478454
mov dword [0x5b9688], eax
lea eax, [ebp - 0x1b4]
call fcn.004722cc
push dword [ebp - 0x1b4]
push ebp
lea eax, [ebp - 0x1b8]
call fcn.00471908
pop ecx
push dword [ebp - 0x1b8]
push ebp
lea eax, [ebp - 0x1bc]
call fcn.00471a70
pop ecx
push dword [ebp - 0x1bc]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.00404d0c
mov eax, dword [0x5b9688]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4785c3
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
cmp byte [eax], 4
jne 0x4785b1
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
mov ebx, dword [eax + 5]
xor edx, edx
mov eax, dword [0x5b9688]
call fcn.0047b298
cmp ebx, dword [eax + 5]
jne 0x4785b1
push dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
lea edx, [eax + 0x59]
lea eax, [ebp - 0x1c0]
call fcn.00404bd4
push dword [ebp - 0x1c0]
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
lea edx, [eax + 0x159]
lea eax, [ebp - 0x1c4]
call fcn.00404bd4
push dword [ebp - 0x1c4]
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
lea edx, [eax + 0x259]
lea eax, [ebp - 0x1c8]
call fcn.00404bd4
push dword [ebp - 0x1c8]
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x5b9688]
call fcn.0047b298
mov eax, dword [eax + 0x35d]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1cc]
call fcn.0040bf3c
push dword [ebp - 0x1cc]
lea eax, [ebp - 0xc8]
mov edx, 5
call fcn.00404d0c
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x4784bd
mov eax, dword [ebp - 0xc8]
call fcn.00440d20
movzx eax, ax
lea ecx, [ebp - 0x1d0]
mov edx, 4
call fcn.0040bf70
mov edx, dword [ebp - 0x1d0]
lea eax, [ebp - 0xc8]
call fcn.00404a00
mov eax, 0x5d0b28
mov edx, dword [ebp - 0xc8]
call fcn.004049bc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x6c]
call fcn.0047b634
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0xffffffff
je 0x47862f
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477bec
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4786db
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x4786c9
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477c60
test al, al
je 0x4786c9
mov eax, dword [0x5d0890]
call fcn.0047b690
xor eax, eax
push ebp
push 0x4786c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4786c9
mov eax, dword [0x5d0890]
call fcn.0047b69c
ret
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x47864f
xor eax, eax
push ebp
push 0x47884c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4787d1
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x4787bf
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477c60
test al, al
je 0x4787bf
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov ebx, eax
lea eax, [ebp - 0x19c]
xor ecx, ecx
mov edx, 0xcc
call fcn.00403288
mov dword [ebp - 0x19c], 0x10003
lea eax, [ebp - 0x19c]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x4787bf
cmp dword [ebp - 0xe4], 0
je 0x4787bf
cmp dword [ebp - 0xd8], 0
je 0x4787bf
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx]
push eax
push 1
push 1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov al, byte [0x479260]
push eax
mov ecx, dword [ebp - 0xd8]
xor edx, edx
mov eax, dword [0x5b9688]
call fcn.00462cc8
mov eax, ebx
call fcn.00477bec
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x478709
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478853
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47884b
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x47883d
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477c60
test al, al
je 0x47883d
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x4787fa
ret
mov dword [0x5d09dc], 5
cmp byte [ebp + 8], 2
je 0x4790ca
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47892c
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x47891a
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x47891a
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477ca8
test al, al
je 0x47891a
mov eax, dword [0x5d0890]
call fcn.0047b690
xor eax, eax
push ebp
push 0x478913
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47891a
mov eax, dword [0x5d0890]
call fcn.0047b69c
ret
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x478887
xor edx, edx
push ebp
push 0x47905f
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [0x5d09dc], 6
mov byte [0x5d0b49], 1
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f4], 0x10
je 0x478963
call fcn.0045c628
call fcn.0045cf1c
mov dword [0x5d09dc], 7
mov eax, dword [0x5b9688]
mov dword [0x5d0b8c], eax
mov eax, dword [0x5d08a0]
mov dword [0x5d0b90], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x5d0b7c], eax
mov eax, dword [ebp - 0x20]
mov dword [0x5d0b80], eax
mov dword [0x5d09dc], 0x2be
push ebp
call fcn.00475610
pop ecx
cmp byte [0x5b917c], 0
je 0x4789dc
mov eax, 0x5d096c
mov ecx, dword [0x5d096c]
mov edx, dword [ebp - 0x38]
call fcn.00404c98
mov byte [0x5b917c], 0
call fcn.004043b4
call fcn.004043b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479175
mov eax, 0x5d0b84
mov edx, dword [0x5d096c]
call fcn.004049bc
mov dword [0x5d09dc], 0x2bf
mov eax, dword [0x5b9680]
mov dword [0x5d0b88], eax
mov dword [0x5d09dc], 0x2c0
mov dword [0x5d0968], 0x5d0b70
mov al, 1
call fcn.0045f898
mov dword [0x5d09dc], 0x2c1
call fcn.0045b0f4
mov dword [0x5d09dc], 0x2c2
push ebp
call fcn.00477d00
pop ecx
call fcn.0045d260
test al, al
je 0x478a70
lea eax, [ebp - 0x1d8]
call fcn.0045fd6c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00460088
mov edx, dword [ebp - 0x1d4]
mov eax, 0x5d0908
call fcn.004049bc
mov eax, 0x5d1248
mov edx, dword [0x5d0908]
call fcn.004049bc
push ebp
call fcn.00477af8
pop ecx
test al, al
je 0x478a95
mov eax, 0x463074
call fcn.00461484
cmp byte [ebp - 0x21], 0
jne 0x478aa7
mov eax, 0x460358
call fcn.00461484
jmp 0x478ab1
mov eax, 0x460428
call fcn.00461484
mov dword [0x5d09dc], 8
cmp byte [0x5d0b49], 0
je 0x478fc4
call fcn.0046c578
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x328], 0
je 0x478b26
call fcn.0040eba0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1dc]
call fcn.0040f7e4
mov edx, dword [ebp - 0x1dc]
mov eax, dword [0x5d09d0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x5d09d0]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [0x5d08a0]
cmp eax, dword [edx + 0x32c]
jle 0x478b26
xor edx, edx
mov eax, dword [0x5d09d0]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [0x5d0bac]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, 0x460850
call fcn.00461484
mov eax, dword [0x5d0bac]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x478b7b
mov eax, dword [0x5d08a0]
test byte [eax + 0x69], 0x80
je 0x478b7b
lea ecx, [ebp - 0x1e0]
mov dl, 0x5b
mov eax, dword [0x5d08a0]
call fcn.0042f9f4
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [0x5d0bac]
mov eax, 7
call fcn.00463ca4
mov dword [0x5d09dc], 9
inc dword [0x5d08ac]
mov dword [0x5d09dc], 0xa
push ebp
lea eax, [ebp - 0x1e8]
call fcn.00471de0
pop ecx
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x1e4]
call fcn.00471340
mov edx, dword [ebp - 0x1e4]
mov eax, 0x5d0960
call fcn.004049bc
mov byte [ebp - 0xbb], 0
mov dword [0x5d09dc], 0xb
cmp byte [0x5d0b2d], 0
jne 0x478bea
mov eax, dword [0x5d08a0]
mov al, byte [eax + 0x6a]
mov byte [0x5d0b2c], al
lea eax, [ebp - 0x1f8]
call fcn.00464fbc
lea esi, [ebp - 0x1f8]
mov edi, 0x5d0e18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [0x5d0b2c], 0
je 0x478dd3
mov dword [0x5d09dc], 0xc
mov byte [0x5d0b48], 1
call fcn.0045b0f4
mov eax, 0x474400
call fcn.00461484
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x310], 0
jne 0x478c51
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x311], 0
jne 0x478c51
xor eax, eax
jmp 0x478c53
mov al, 1
mov byte [0x5d0978], al
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f5], 0x10
setne al
mov byte [0x5d097a], al
mov byte [0x5d0979], 0
cmp byte [0x5d0b48], 0
je 0x478e2f
mov dword [0x5d09dc], 0xd
mov al, byte [ebp + 0x10]
call fcn.00477ba8
sub al, 1
jb 0x478d42
je 0x478cd3
dec al
jne 0x478dbd
call fcn.0045d498
test al, al
je 0x478cb6
cmp dword [0x5d0918], 0
je 0x478cc7
push ebp
mov eax, dword [0x5d096c]
call fcn.00477918
pop ecx
jmp 0x478dbd
mov byte [ebp - 0xb9], 1
jmp 0x478dbd
xor eax, eax
push ebp
push 0x478d23
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1fc]
mov ecx, dword [0x5d096c]
mov edx, dword [ebp - 0x38]
call fcn.00404c98
mov edx, dword [ebp - 0x1fc]
mov eax, dword [0x5cbf34]
call fcn.00405060
call fcn.004034a4
call fcn.00402958
mov byte [0x5d0b48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478dbd
xor edx, edx
push ebp
push 0x478da0
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x5d0b2c], 3
sete byte [ebp - 0xbb]
mov byte [0x5d0e05], 0
cmp byte [0x5d0b2c], 0
setne al
call fcn.0046b5f4
xor eax, eax
cmp byte [0x5d0b2c], 0
je 0x478d86
mov byte [0x5d0e05], 1
cmp byte [0x5d0b2c], 0
jne 0x478d6f
mov byte [0x5d0b48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478dbd
mov dword [0x5d09dc], 0xe
mov eax, 0x474424
call fcn.00461484
jmp 0x478e2f
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x310], 0
jne 0x478df3
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x311], 0
jne 0x478df3
xor eax, eax
jmp 0x478df5
mov al, 1
mov byte [0x5d0978], al
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f5], 0x10
setne al
mov byte [0x5d097a], al
call fcn.0045d4a4
test al, al
je 0x478e2f
push ebp
lea eax, [ebp - 0x200]
call fcn.004631fc
mov eax, dword [ebp - 0x200]
call fcn.00477918
pop ecx
cmp byte [ebp - 0xbb], 0
je 0x478e3d
call fcn.004644bc
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f4], 2
je 0x478e78
lea ecx, [ebp - 0x204]
mov dl, 0x7b
mov eax, dword [0x5d08a0]
call fcn.0042f9f4
mov edx, dword [ebp - 0x204]
mov eax, dword [0x5d08a0]
mov ecx, dword [eax + 0x348]
mov eax, 7
call fcn.00463b48
call fcn.00477ab8
test al, al
je 0x478e97
lea eax, [ebp - 0x208]
call fcn.0045fb00
mov eax, dword [ebp - 0x208]
call fcn.0046cc7c
call fcn.0046cd0c
mov dword [0x5d09dc], 0xf
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f4], 4
je 0x478f5d
call fcn.0045f7b0
xor eax, eax
push ebp
push 0x478f01
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [0x5d0bbc]
call fcn.0044ae20
mov ecx, eax
dec ecx
mov edx, 0x479288
mov eax, dword [0x5d0bbc]
call fcn.0044abb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478f08
call fcn.0045f87c
ret
call fcn.00477ab8
mov byte [ebp - 0xba], al
mov eax, dword [0x5d08a0]
cmp byte [eax + 0x2ef], 0
je 0x478f7b
call fcn.004740f0
cmp byte [0x5d097b], 0
je 0x478f8e
mov eax, dword [0x5d096c]
call fcn.0045b658
mov dword [0x5d09dc], 0x10
cmp byte [ebp - 0xba], 0
je 0x478fa6
call fcn.00470550
cmp byte [ebp - 0xba], 0
je 0x478fbd
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f5], 0x80
jne 0x478fcb
call fcn.004705a4
jmp 0x478fcb
mov byte [ebp - 0xb9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479069
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47905e
inc eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov ebx, dword [eax]
call sub.kernel32.dll_GetCurrentThreadId_1
cmp ebx, eax
je 0x479050
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x479050
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
call fcn.00477ca8
test al, al
je 0x479050
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x6c]
call fcn.0047b664
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
inc dword [ebp - 0xc0]
dec dword [ebp - 0xd0]
jne 0x478ff4
ret
mov eax, dword [0x5d08a0]
test byte [eax + 0x335], 0x80
je 0x4790f1
mov byte [ebp - 0xb9], 1
jmp 0x4790f1
cmp byte [ebp - 0xc1], 1
jne 0x4790f1
mov byte [ebp - 0xb9], 1
mov dword [0x5d09dc], 0x12
cmp byte [ebp + 8], 2
je 0x47911d
cmp byte [ebp - 0xba], 0
je 0x479118
mov eax, dword [0x5d08a0]
test byte [eax + 0x2f5], 0x80
jne 0x47911d
call fcn.004706b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479146
mov eax, dword [ebp - 0x6c]
call fcn.00403a78
call fcn.0040721c
mov byte [eax + 0x181], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479208
lea eax, [ebp - 0x218]
mov edx, 8
call fcn.0040498c
lea eax, [ebp - 0x1e8]
mov edx, 0x13
call fcn.0040498c
lea eax, [ebp - 0xcc]
mov edx, 2
call fcn.0040498c
lea eax, [ebp - 0xb8]
call fcn.00404968
lea eax, [ebp - 0x78]
call fcn.00404968
lea eax, [ebp - 0x68]
call fcn.00404968
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.0040498c
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040498c
lea eax, [ebp - 0x30]
call fcn.00404968
lea eax, [ebp - 0x21]
mov edx, dword [0x456e7c]
call fcn.0040579c
ret