Function at 0x577d54
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], eax
mov ebx, dword [0x5d34c0]
mov esi, dword [0x5d3e28]
xor eax, eax
push ebp
push 0x579197
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d3df4]
cmp byte [eax], 0
je 0x577dc2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ae0]
sub eax, dword [edx]
cmp eax, 0x2710
jbe 0x577dc2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ae0]
mov dword [edx], eax
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00481d60
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3844]
sub eax, dword [edx]
mov edx, dword [0x5d3f5c]
imul edx, dword [edx], 0x3e8
cmp eax, edx
jbe 0x577e4d
mov eax, dword [0x5d3a20]
cmp byte [eax], 0
je 0x577e4d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3844]
mov dword [edx], eax
push 0xff
push 0x5791b0
mov eax, dword [0x5d3f5c]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00408ddc
push dword [ebp - 0x30]
push 0x5791bc
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404794
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xffffff
call fcn.005b2b94
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x2710
call fcn.005520f8
cmp dword [ebx], 0
je 0x57917c
mov eax, dword [0x5d3fa0]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [0x5d3b88]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [ebx]
cmp byte [eax + 0x78], 0
jne 0x57917c
mov eax, dword [0x5d3a48]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [0x5d368c]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [0x5d35bc]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [0x5d33e4]
cmp byte [eax], 0
je 0x577ee8
mov eax, dword [0x5d33e4]
mov byte [eax], 0
mov eax, dword [0x5d3f50]
mov byte [eax], 0
mov eax, dword [0x5d3bb4]
mov byte [eax], 0
mov eax, dword [0x5d3da8]
mov eax, dword [eax]
push eax
mov edx, dword [0x5d38f0]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0053fe2c
mov eax, dword [0x5d3a68]
cmp byte [eax], 0
je 0x577f0a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3424]
sub eax, dword [edx]
cmp eax, 0x5dc
jb 0x57917c
mov eax, dword [0x5d360c]
cmp byte [eax], 0
je 0x577faa
mov eax, dword [0x5d35b0]
cmp dword [eax], 3
jge 0x577faa
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x577faa
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x577faa
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x577faa
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x5791e4
call fcn.005b2b94
push 0x579204
push 0
mov eax, dword [ebx]
movzx ecx, word [eax + 0x122]
mov eax, dword [ebx]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
mov eax, dword [0x5d35b0]
inc dword [eax]
mov eax, dword [0x5d360c]
mov byte [eax], 0
jmp 0x57917c
mov eax, dword [0x5d3de8]
cmp dword [eax], 1
jle 0x578064
mov eax, dword [0x5d35b0]
cmp dword [eax], 3
jge 0x578064
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x578064
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x578064
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x578064
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x579204
call fcn.005455fc
test eax, eax
je 0x578064
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x5791e4
call fcn.005b2b94
push 0x579204
push 0
mov eax, dword [ebx]
movzx ecx, word [eax + 0x122]
mov eax, dword [ebx]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
mov eax, dword [0x5d35b0]
inc dword [eax]
mov eax, dword [0x5d3de8]
xor edx, edx
mov dword [eax], edx
jmp 0x57917c
mov eax, dword [0x5d3b58]
cmp byte [eax], 0
je 0x5780be
mov eax, dword [0x5d3214]
cmp byte [eax], 0
je 0x5780be
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3eb0]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d334c]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x5780a4
cmp eax, dword [esp]
pop edx
pop eax
ja 0x5780be
jmp 0x5780a8
pop edx
pop eax
jg 0x5780be
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, 2
mov edx, 0x579218
call fcn.0054cd0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3360]
sub eax, dword [edx]
mov ecx, 0x3e8
xor edx, edx
div ecx
test edx, edx
jne 0x578109
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3360]
sub eax, dword [edx]
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.00408ddc
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi]
mov edx, 0x57922c
call fcn.005a8b08
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3af8]
sub eax, dword [edx]
mov edx, dword [0x5d3688]
cmp eax, dword [edx]
jb 0x57917c
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
call fcn.005b59b8
mov eax, dword [0x5d3bd8]
cmp byte [eax], 0
je 0x578214
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3b74]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d3714]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x57816e
cmp eax, dword [esp]
pop edx
pop eax
jae 0x578214
jmp 0x578176
pop edx
pop eax
jge 0x578214
mov eax, dword [esi]
cmp byte [eax + 0x89c], 0
je 0x578214
mov eax, dword [esi]
cmp byte [eax + 0x86c], 0
je 0x578214
mov eax, dword [0x5d3b70]
xor edx, edx
mov dword [eax], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3b74]
mov dword [edx], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3cc4]
mov dword [edx], eax
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x579240
call fcn.005b2b94
mov eax, dword [0x5d3b60]
mov edx, 0x579274
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [0x5d3cac]
mov edx, dword [0x5d3b60]
mov edx, dword [edx]
call fcn.00404468
mov edx, dword [0x5d37a0]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00557694
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3cc4]
sub eax, dword [edx]
cmp eax, 0x4e20
jbe 0x578313
mov eax, dword [esi]
cmp byte [eax + 0x86c], 0
je 0x578313
mov eax, dword [esi]
cmp byte [eax + 0x89c], 0
je 0x578313
mov eax, dword [esi]
mov eax, dword [eax + 0x87c]
mov edx, 0x5792a8
call fcn.00404820
je 0x57828e
mov eax, dword [esi]
mov edx, dword [eax + 0x87c]
mov eax, 0x5792bc
call fcn.00404a18
test eax, eax
jg 0x57828e
mov eax, dword [esi]
mov edx, dword [eax + 0x87c]
mov eax, 0x5792cc
call fcn.00404a18
test eax, eax
jle 0x578313
jmp 0x5782b5
mov eax, dword [0x5d3b60]
mov edx, 0x5792dc
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x860]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esi]
mov edx, 1
call fcn.005a8ac8
mov eax, dword [0x5d3b70]
inc dword [eax]
mov eax, dword [0x5d3b70]
cmp dword [eax], 1
nop
nop
mov eax, dword [0x5d3cc4]
jmp 0x58dce0
mov eax, dword [0x5d3608]
cmp byte [eax], 0
je 0x5783ee
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3a3c]
sub eax, dword [edx]
mov edx, dword [0x5d3d38]
imul edx, dword [edx], 0x3e8
cmp eax, edx
jbe 0x5783ee
mov eax, dword [esi]
cmp byte [eax + 0x86c], 0
je 0x5783ee
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3a3c]
mov dword [edx], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3cc4]
mov dword [edx], eax
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x5792fc
call fcn.005b2b94
mov eax, dword [0x5d3b60]
mov edx, 0x5792fc
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [0x5d3f2c]
mov edx, 0x5792fc
call fcn.00404468
mov eax, dword [0x5d32a4]
inc dword [eax]
mov eax, dword [0x5d32a4]
cmp dword [eax], 0x10
jg 0x5783d8
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x2710
call fcn.00551474
jmp 0x57917c
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x2710
call fcn.005520f8
jmp 0x57917c
mov eax, dword [0x5d32f4]
cmp byte [eax], 0
je 0x578497
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3cc4]
sub eax, dword [edx]
mov edx, dword [0x5d3c40]
imul edx, dword [edx], 0x3e8
cmp eax, edx
jbe 0x578497
mov eax, dword [esi]
cmp byte [eax + 0x86c], 0
je 0x578497
mov eax, dword [0x5d3b70]
xor edx, edx
mov dword [eax], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3cc4]
mov dword [edx], eax
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x579328
call fcn.005b2b94
mov eax, dword [0x5d3b60]
mov edx, 0x579354
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [0x5d3cac]
mov edx, dword [0x5d3b60]
mov edx, dword [edx]
call fcn.00404468
mov edx, dword [0x5d37a0]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00557694
mov eax, dword [0x5d3c7c]
cmp dword [eax], 2
jle 0x5785a1
mov eax, dword [0x5d3658]
cmp byte [eax], 0
jne 0x5785a1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [0x5d3974]
mov esi, dword [0x5d3858]
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
add eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
movzx eax, word [eax + 0x122]
add eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005b4c3c
test al, al
jne 0x57851c
cmp dword [ebp - 0x28], 0
je 0x57851c
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x54], 0
je 0x57851c
inc dword [ebp - 0x18]
inc dword [ebp - 8]
add esi, 4
add edi, 4
cmp dword [ebp - 8], 8
jne 0x5784d4
cmp dword [ebp - 0x18], 0
jle 0x5785a1
mov eax, dword [0x5d31e0]
cmp byte [eax + 0x5f], 0
je 0x57854f
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x579380
call fcn.005560fc
jmp 0x5785a1
mov eax, dword [0x5d3658]
cmp byte [eax], 0
jne 0x5785a1
cmp dword [ebp - 0x18], 0
jle 0x5785a1
mov eax, dword [0x5d3970]
cmp byte [eax], 0
jne 0x5785a1
mov eax, dword [0x5d3508]
cmp byte [eax], 0
jne 0x578599
mov eax, dword [0x5d3658]
mov al, byte [eax]
mov edx, dword [0x5d3730]
mov byte [edx], al
mov eax, dword [0x5d3c84]
mov eax, dword [eax]
mov edx, dword [0x5d3910]
mov dword [edx], eax
mov eax, dword [0x5d3508]
mov byte [eax], 1
mov eax, dword [0x5d3658]
mov byte [eax], 1
mov eax, dword [0x5d3cc0]
cmp byte [eax], 0
je 0x578628
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
jne 0x578628
mov eax, dword [0x5d3a14]
cmp dword [eax], 0
jne 0x578628
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jge 0x578628
mov eax, dword [0x5d3c38]
cmp dword [eax], 0
jne 0x578628
mov eax, dword [ebx]
cmp byte [eax + 0x119], 0
je 0x578628
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xc]
cmp eax, 0x3e8
jbe 0x57861a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00579400
test al, al
je 0x57917c
call fcn.005c95c0
mov eax, dword [0x5d3e6c]
mov byte [eax], 0
jmp 0x578628
mov eax, dword [0x5d3e6c]
cmp byte [eax], 0
jne 0x57917c
mov eax, dword [0x5d33a8]
cmp byte [eax], 0
je 0x57870a
mov edx, dword [0x5d3280]
mov edx, dword [edx]
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
call fcn.005b4df8
mov esi, eax
test esi, esi
je 0x578695
mov eax, dword [0x5d3e78]
cmp dword [eax], 0
jne 0x578695
movzx eax, word [esi + 0x122]
push eax
movzx ecx, word [esi + 0x120]
mov eax, dword [ebx]
movzx edx, word [eax + 0x122]
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 7
jge 0x578695
mov eax, dword [0x5d3658]
mov byte [eax], 1
mov eax, dword [0x5d328c]
mov byte [eax], 1
test esi, esi
je 0x57870a
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
cmp dword [eax + 0x1b0], 0
jle 0x57870a
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
cmp dword [eax + 0x1b4], 0
jle 0x57870a
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x1b4]
push eax
push 0
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x1b0]
mov eax, dword [0x5d3eb8]
mov eax, dword [eax]
mov edx, dword [eax + 0x7c]
mov eax, dword [0x5d3370]
mov eax, dword [eax]
call fcn.005c1024
test eax, eax
je 0x57870a
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov dword [eax + 0x1b0], 0xffffffff
mov eax, dword [ebx]
xor edx, edx
call fcn.005cf318
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x9f8]
call fcn.00573d70
mov edx, dword [0x5d3dd0]
mov dword [edx], eax
mov eax, dword [0x5d3c38]
cmp dword [eax], 1
jne 0x57880a
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jge 0x57880a
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x57880a
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
push eax
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d3dd0]
mov eax, dword [eax]
push eax
mov eax, dword [ebx]
movzx ecx, word [eax + 0x122]
mov eax, dword [ebx]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
call fcn.005c68b0
test al, al
je 0x57880a
mov eax, dword [ebx]
cmp byte [eax + 0x119], 0
jne 0x5787bd
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0xbc3
je 0x5787bd
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0xbc5
jne 0x57880a
mov eax, dword [ebx]
xor edx, edx
call fcn.005cf318
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x15c], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f3c]
mov dword [edx], eax
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
mov edx, dword [0x5d398c]
mov dword [edx], eax
mov eax, dword [ebx]
movzx eax, word [eax + 0x122]
mov edx, dword [0x5d3888]
mov dword [edx], eax
mov eax, dword [0x5d3e9c]
mov dword [eax], 0xffffffff
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x5788f4
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x5788f4
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
push eax
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
push 2
mov eax, dword [ebx]
movzx ecx, word [eax + 0x122]
mov eax, dword [ebx]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
call fcn.005c68b0
test al, al
je 0x5788f4
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx ecx, word [eax + 0x120]
mov eax, dword [ebx]
movzx edx, word [eax + 0x122]
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 2
jne 0x5788f4
mov eax, dword [0x5d36dc]
cmp byte [eax], 0
je 0x5788f4
mov eax, dword [ebx]
xor edx, edx
call fcn.005cf318
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x15c], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f3c]
mov dword [edx], eax
mov eax, dword [0x5d3e9c]
mov dword [eax], 0xffffffff
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x9f8]
call fcn.0056f134
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x578939
mov eax, dword [ebx]
cmp byte [eax + 0x119], 0
je 0x578939
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jle 0x578939
mov eax, dword [0x5d3784]
cmp byte [eax], 0
jne 0x578939
mov eax, dword [0x5d3cd4]
cmp byte [eax], 0
jne 0x578939
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x9f8]
call fcn.0057618c
mov eax, dword [0x5d3e9c]
cmp dword [eax], 0
jge 0x578bae
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x578bae
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x578bae
mov eax, dword [ebx]
cmp byte [eax + 0x119], 0
je 0x578bae
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0
jne 0x578bae
mov byte [ebp - 0x22], 1
mov eax, dword [0x5d3f18]
cmp byte [eax], 0
je 0x578a42
mov eax, dword [0x5d32a0]
cmp dword [eax], 0
je 0x578a42
lea eax, [ebp - 0x38]
mov edx, dword [0x5d3810]
imul edx, dword [edx], 0x35
mov ecx, dword [0x5d3260]
lea edx, [ecx + edx]
call fcn.00404678
mov eax, dword [ebp - 0x38]
mov edx, dword [0x5d32a0]
mov edx, dword [edx]
call fcn.00404820
je 0x578a3a
or edi, 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
mov esi, dword [0x5d3d10]
lea eax, [ebp - 0x3c]
mov edx, esi
call fcn.00404678
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x5d32a0]
mov edx, dword [edx]
call fcn.00404820
jne 0x578a08
mov edi, dword [ebp - 8]
jmp 0x578a14
inc dword [ebp - 8]
add esi, 0x35
cmp dword [ebp - 8], 0x2e
jne 0x5789e7
test edi, edi
jl 0x578a42
mov ecx, dword [0x5d3810]
mov ecx, dword [ecx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, edi
call fcn.00548400
jmp 0x578a42
mov eax, dword [0x5d3f18]
mov byte [eax], 0
cmp byte [ebp - 0x22], 0
je 0x57917c
mov eax, dword [0x5d3478]
call fcn.00404414
mov ecx, dword [0x5d3d34]
mov edx, dword [0x5d3e9c]
mov eax, dword [ebx]
call fcn.005ce804
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
test esi, esi
jne 0x578a87
mov byte [ebp - 0x22], 1
mov eax, dword [0x5d3c7c]
xor edx, edx
mov dword [eax], edx
jmp 0x578b36
cmp esi, 3
jg 0x578b36
mov byte [ebp - 0x22], 0
dec esi
jne 0x578b1b
mov eax, dword [0x5d3c7c]
inc dword [eax]
mov eax, dword [0x5d324c]
cmp byte [eax], 0
je 0x578b36
mov eax, dword [0x5d3d5c]
cmp dword [eax], 0
jne 0x578b36
mov eax, dword [0x5d3980]
cmp dword [eax], 3
jle 0x578b36
mov eax, dword [0x5d3fa8]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x578b36
mov eax, dword [0x5d3d5c]
mov dword [eax], 1
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
mov edx, dword [0x5d3d7c]
mov dword [edx], eax
mov eax, dword [ebx]
movzx eax, word [eax + 0x122]
mov edx, dword [0x5d3c6c]
mov dword [edx], eax
push 0xff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xffffff
mov edx, 0x579398
call fcn.005b2b94
jmp 0x578b36
mov eax, dword [ebx]
xor edx, edx
call fcn.005cf318
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054dff8
cmp byte [ebp - 0x22], 0
je 0x578bae
mov eax, dword [0x5d3d34]
mov eax, dword [eax]
push eax
mov ecx, dword [0x5d3e9c]
mov ecx, dword [ecx]
mov eax, dword [ebx]
movzx edx, word [eax + 0x122]
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 2
jl 0x578b72
mov eax, dword [0x5d3ad8]
mov byte [eax], 1
jmp 0x578bae
mov eax, dword [0x5d3d34]
mov eax, dword [eax]
push eax
mov ecx, dword [0x5d3e9c]
mov ecx, dword [ecx]
mov eax, dword [ebx]
movzx edx, word [eax + 0x122]
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
dec eax
jl 0x578ba6
mov eax, dword [0x5d3ad8]
mov byte [eax], 0
jmp 0x578bae
mov eax, dword [0x5d3ad8]
mov byte [eax], 5
mov eax, dword [0x5d3414]
cmp byte [eax], 0
jmp 0x578c1e
mov eax, dword [0x5d3e9c]
cmp dword [eax], 0
jl 0x579040
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x579040
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x579040
mov eax, dword [ebx]
movzx eax, word [eax + 0x120]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
movzx eax, word [eax + 0x122]
mov dword [ebp - 0x10], eax
mov edi, dword [0x5d3e9c]
mov edi, dword [edi]
mov eax, dword [0x5d3d34]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.005c420c
mov byte [ebp - 0x21], al
mov eax, dword [0x5d3ad8]
mov al, byte [eax]
sub al, 1
jb 0x578d33
je 0x578ea0
sub al, 4
jne 0x579040
mov eax, dword [ebp - 0x10]
push eax
movzx esi, byte [ebp - 0x21]
push esi
push 0
push 0
push 0
push 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov dx, 0xbc2
call fcn.005cc584
mov eax, dword [0x5d3240]
mov byte [eax], 0
mov eax, dword [0x5d3984]
cmp dword [eax], 0
jle 0x578d21
mov eax, dword [ebp - 0x10]
push eax
push esi
push 0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, 0xbc2
call fcn.0053398c
mov eax, dword [0x5d32dc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [0x5d31ac]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x5d3798]
mov dword [eax], esi
mov eax, dword [0x5d3da0]
mov dword [eax], 0xbc2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3340]
mov dword [edx], eax
jmp 0x579040
mov eax, dword [ebx]
call fcn.005ccd78
mov esi, eax
xor ecx, ecx
mov cl, byte [ebp - 0x21]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0xbc3
call fcn.00535e4c
test al, al
je 0x578e90
test esi, esi
jle 0x578e90
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov al, byte [ebp - 0x21]
call fcn.005c4138
mov byte [ebp - 0x23], 0
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005b4c00
test al, al
je 0x578e79
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5d346c]
cmp byte [eax], 0
je 0x578dd4
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov al, byte [ebp - 0x21]
call fcn.005c4138
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00544cd0
mov byte [ebp - 0x23], al
cmp byte [ebp - 0x23], 0
jne 0x578dd4
mov eax, dword [0x5d3e50]
mov al, byte [eax]
mov byte [ebp - 0x23], al
cmp byte [ebp - 0x23], 0
jne 0x579040
mov eax, dword [0x5d3ddc]
mov byte [eax], 1
mov eax, dword [0x5d38a0]
mov byte [eax], 1
mov eax, dword [ebp - 0x14]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx]
mov ecx, edi
mov dx, 0xbc3
call fcn.005cc584
mov eax, dword [0x5d3240]
mov byte [eax], 0
mov eax, dword [0x5d3984]
cmp dword [eax], 0
jle 0x578e67
mov eax, dword [ebp - 0x14]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0xbc3
call fcn.0053398c
mov eax, dword [0x5d32dc]
mov dword [eax], edi
mov eax, dword [0x5d31ac]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
xor eax, eax
mov al, byte [ebp - 0x21]
mov edx, dword [0x5d3798]
mov dword [edx], eax
mov eax, dword [0x5d3da0]
mov dword [eax], 0xbc3
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3340]
mov dword [edx], eax
jmp 0x579040
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00544cd0
jmp 0x579040
mov eax, dword [0x5d3e9c]
mov dword [eax], 0xffffffff
jmp 0x579040
mov eax, dword [0x5d37a8]
cmp dword [eax], 0
jl 0x579034
mov eax, dword [ebx]
call fcn.005cce00
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.005c40a0
cmp eax, 2
jl 0x578d33
test esi, esi
jle 0x578d33
xor ecx, ecx
mov cl, byte [ebp - 0x21]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0xbc5
call fcn.00535e4c
test al, al
je 0x579027
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov al, byte [ebp - 0x21]
call fcn.005c419c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx]
movzx ecx, word [eax + 0x122]
mov eax, dword [ebx]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
call fcn.005b4a64
test al, al
je 0x578d33
mov eax, dword [0x5d3ddc]
mov byte [eax], 1
mov eax, dword [0x5d38a0]
mov byte [eax], 1
mov byte [ebp - 0x23], 0
mov eax, dword [0x5d346c]
cmp byte [eax], 0
je 0x578f90
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov al, byte [ebp - 0x21]
call fcn.005c4138
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00544cd0
mov byte [ebp - 0x23], al
cmp byte [ebp - 0x23], 0
jne 0x578f90
mov eax, dword [0x5d3e50]
mov al, byte [eax]
mov byte [ebp - 0x23], al
cmp byte [ebp - 0x23], 0
jne 0x579040
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov dx, 0xbc5
call fcn.005cc584
mov eax, dword [0x5d3240]
mov byte [eax], 0
mov eax, dword [0x5d3984]
cmp dword [eax], 0
jle 0x579018
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, 0xbc5
call fcn.0053398c
mov eax, dword [0x5d32dc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [0x5d31ac]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
xor eax, eax
mov al, byte [ebp - 0x21]
mov edx, dword [0x5d3798]
mov dword [edx], eax
mov eax, dword [0x5d3da0]
mov dword [eax], 0xbc5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3340]
mov dword [edx], eax
jmp 0x579040
mov eax, dword [0x5d3e9c]
mov dword [eax], 0xffffffff
jmp 0x579040
mov eax, dword [0x5d37a8]
inc dword [eax]
jmp 0x578d33
mov eax, dword [0x5d3e9c]
mov dword [eax], 0xffffffff
mov eax, dword [ebx]
jmp 0x58d780
jle 0x57917c
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x57917c
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x57917c
mov eax, dword [ebx]
mov eax, dword [eax + 0x15c]
mov edx, dword [0x5d3da0]
mov dword [edx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x160]
mov edx, dword [0x5d3798]
mov dword [edx], eax
mov eax, dword [0x5d32dc]
mov dword [eax], 0xffffffff
mov eax, dword [0x5d31ac]
mov dword [eax], 0xffffffff
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0xbc9
jne 0x5790ff
mov eax, dword [ebx]
mov eax, dword [eax + 0x168]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x160]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x16c]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x164]
mov eax, dword [ebx]
mov edx, dword [eax + 0x15c]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00533c58
jmp 0x579172
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0xbc3
je 0x57911b
mov eax, dword [ebx]
cmp dword [eax + 0x15c], 0xbc5
jne 0x57913b
mov eax, dword [ebx]
mov eax, dword [eax + 0x164]
mov edx, dword [0x5d32dc]
mov dword [edx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x168]
mov edx, dword [0x5d31ac]
mov dword [edx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x168]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x160]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x178]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x164]
mov eax, dword [ebx]
mov edx, dword [eax + 0x15c]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0053398c
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x15c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57919e
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00404438
ret
test eax, eax
je 0x58d790
cmp dword [eax + 0x15c], 0
jmp 0x579054
jmp 0x57917c
mov eax, dword [0x5d70a8]
mov edx, eax
call fcn.00557694
jmp 0x578313