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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x36
push 0
push 0
dec ecx
jne 0x5fb829
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5fc374
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebx + 0x2e0]
cmp byte [eax + 0x50], 0
je 0x5fb874
push 1
mov edx, dword [0x6c0e34]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
jmp 0x5fc32c
cmp byte [ebx + 0x15b5], 0x64
jae 0x5fb883
inc byte [ebx + 0x15b5]
movzx eax, byte [esi + 0x12]
sub al, 1
jb 0x5fb89e
je 0x5fb95d
dec al
je 0x5fbd1c
jmp 0x5fc32c
cmp word [ebx + 0x11e], 0
jbe 0x5fb8f4
movzx eax, byte [esi + 0x14]
dec al
je 0x5fb8b6
dec al
je 0x5fb8c7
jmp 0x5fb8d0
movzx ecx, word [esi + 0x25]
movzx edx, word [esi + 0x21]
mov eax, ebx
call fcn.006161d0
jmp 0x5fb8f4
mov byte [ebx + 0x31c], 1
jmp 0x5fb8f4
movzx eax, word [esi + 0x21]
test ax, ax
jbe 0x5fb8e2
movzx eax, ax
add dword [ebx + 0xc8], eax
movzx eax, word [esi + 0x25]
test ax, ax
jbe 0x5fb8f4
movzx eax, ax
add dword [ebx + 0xcc], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xc], 1
jbe 0x5fb954
mov eax, dword [ebp - 4]
dec word [eax + 0xc]
cmp byte [esi + 0x58], 1
jne 0x5fb94b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
push eax
push 0x5fc390
push 0x5fc39c
push 0x5fc3a8
push 0x5fc3b4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
lea edx, [esi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x1c]
mov edx, 6
mov eax, ebx
call fcn.006421ac
mov byte [ebp - 5], 0
jmp 0x5fc32c
mov byte [ebp - 5], 1
jmp 0x5fc32c
cmp byte [esi + 0x14], 0
jne 0x5fb9dc
mov edx, esi
mov eax, ebx
call fcn.005ee124
mov eax, dword [ebp - 4]
cmp word [eax + 0xc], 0x3e8
jbe 0x5fb9d3
mov eax, dword [ebp - 4]
sub word [eax + 0xc], 0x3e8
mov byte [ebp - 5], 0
cmp byte [esi + 0x58], 1
jne 0x5fc32c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
push eax
push 0x5fc390
push 0x5fc39c
push 0x5fc3c4
push 0x5fc3b4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
lea edx, [esi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x20]
mov edx, 6
mov eax, ebx
call fcn.006421ac
jmp 0x5fc32c
mov byte [ebp - 5], 1
jmp 0x5fc32c
cmp byte [esi + 0x14], 1
jne 0x5fbadd
mov eax, dword [ebx + 0x28c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5fba71
inc eax
mov dword [ebp - 0x18], eax
xor edi, edi
mov edx, edi
mov eax, dword [ebx + 0x28c]
call fcn.0041fbfc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x288], 7
jae 0x5fba6b
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x288], 7
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov eax, dword [ebp - 0x10]
call fcn.006129b4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
push eax
push 0
push 0
mov cx, 0x12
mov dx, 0xd9
mov eax, dword [ebp - 0x10]
call fcn.0060aa6c
push 1
mov edx, dword [0x6c09f8]
mov edx, dword [edx]
mov cl, 2
mov eax, ebx
call fcn.0060cf8c
jmp 0x5fba71
inc edi
dec dword [ebp - 0x18]
jne 0x5fb9fa
mov eax, dword [ebp - 4]
cmp word [eax + 0xc], 0x3e8
jbe 0x5fbad4
mov eax, dword [ebp - 4]
sub word [eax + 0xc], 0x3e8
cmp byte [esi + 0x58], 1
jne 0x5fbacb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
push eax
push 0x5fc390
push 0x5fc39c
push 0x5fc3c4
push 0x5fc3b4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24]
lea edx, [esi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x24]
mov edx, 6
mov eax, ebx
call fcn.006421ac
mov byte [ebp - 5], 0
jmp 0x5fc32c
mov byte [ebp - 5], 1
jmp 0x5fc32c
cmp byte [esi + 0x14], 9
jne 0x5fbc99
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0xc], 0
jle 0x5fbc05
imul edx, edi, 0x39
cmp word [ebx + edx*2 + 0x428], 0
jbe 0x5fbc05
imul eax, edi, 0x39
movzx edx, word [ebx + eax*2 + 0x430]
cmp dx, word [ebx + eax*2 + 0x432]
jae 0x5fbc05
imul eax, edi, 0x39
movzx edx, word [ebx + eax*2 + 0x428]
mov eax, dword [0x6c0ec4]
mov eax, dword [eax]
call fcn.005bf910
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5fbc05
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0066b71c
test al, al
jne 0x5fbc05
mov eax, dword [ebp - 0x14]
test byte [eax + 0x13], 1
je 0x5fbc05
imul eax, edi, 0x39
movzx eax, word [ebx + eax*2 + 0x432]
imul edx, edi, 0x39
movzx edx, word [ebx + edx*2 + 0x430]
sub eax, edx
test eax, eax
jle 0x5fbc05
cmp eax, dword [ebp - 0xc]
jge 0x5fbba1
imul edx, edi, 0x39
add word [ebx + edx*2 + 0x430], ax
sub dword [ebp - 0xc], eax
jmp 0x5fbbb5
imul eax, edi, 0x39
movzx edx, word [ebp - 0xc]
add word [ebx + eax*2 + 0x430], dx
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 4
lea edx, [ebp - 0x30]
mov eax, dword [0x6c06f8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040bb24
mov edx, dword [ebp - 0x28]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
imul eax, edi, 0x39
movzx eax, word [ebx + eax*2 + 0x432]
push eax
imul eax, edi, 0x39
movzx ecx, word [ebx + eax*2 + 0x430]
mov edx, edi
mov eax, ebx
call fcn.00609290
inc edi
cmp edi, 0x10
jne 0x5fbaf8
cmp dword [ebp - 0xc], 0x3e8
jl 0x5fbc90
fild dword [ebp - 0xc]
fdiv dword [0x5fc3cc]
call fcn.00403560
mov dword [ebp - 0xc], eax
cmp byte [esi + 0x58], 1
jne 0x5fbc7c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x5fc390
push 0x5fc39c
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
sub eax, dword [ebp - 0xc]
call fcn.0040a790
mov eax, dword [ebp - 0x34]
push eax
push 0x5fc3b4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x38]
lea edx, [esi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x38]
mov edx, 6
mov eax, ebx
call fcn.006421ac
mov eax, dword [ebp - 4]
movzx edx, word [ebp - 0xc]
mov word [eax + 0xc], dx
mov byte [ebp - 5], 0
jmp 0x5fc32c
mov byte [ebp - 5], 1
jmp 0x5fc32c
mov byte [ebp - 5], 0
movzx edx, byte [esi + 0x14]
mov eax, ebx
call fcn.005fc698
test al, al
je 0x5fc32c
mov eax, dword [ebp - 4]
cmp word [eax + 0xc], 0x3e8
jbe 0x5fbd13
mov eax, dword [ebp - 4]
sub word [eax + 0xc], 0x3e8
cmp byte [esi + 0x58], 1
jne 0x5fbd0a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
push eax
push 0x5fc390
push 0x5fc39c
push 0x5fc3c4
push 0x5fc3b4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
lea edx, [esi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x3c]
mov edx, 6
mov eax, ebx
call fcn.006421ac
mov byte [ebp - 5], 0
jmp 0x5fc32c
mov byte [ebp - 5], 1
jmp 0x5fc32c
movzx eax, byte [esi + 0x14]
cmp al, 0x12
jne 0x5fbda8
xor edi, edi
movzx eax, word [ebx + 0xcc0]
add edi, eax
movzx eax, word [ebx + 0xcc2]
add edi, eax
movzx eax, word [ebx + 0xcc4]
add edi, eax
movzx eax, word [ebx + 0xcc6]
add edi, eax
movzx eax, word [ebx + 0xcc8]
add edi, eax
movzx eax, word [ebx + 0xcca]
add edi, eax
movzx eax, word [esi + 0x1f]
mov edx, eax
add edx, dword [ebx + 0xcd0]
cmp edi, edx
jle 0x5fbd78
add dword [ebx + 0xcd0], eax
jmp 0x5fbd98
xor eax, eax
mov dword [ebx + 0xcd0], eax
lea eax, [ebx + 0xcc0]
xor ecx, ecx
mov edx, 0xc
call fcn.004e2d28
add dword [ebx + 0xccc], edi
mov eax, ebx
call fcn.005e99cc
mov byte [ebp - 5], 1
jmp 0x5fc32c
cmp al, 0x11
jne 0x5fbdc6
movzx eax, word [esi + 0x17]
imul edx, eax, 0x3e8
mov eax, ebx
call fcn.005e3d0c
mov byte [ebp - 5], 1
jmp 0x5fc32c
cmp al, 0x10
jne 0x5fbdf0
mov eax, 0x64
call fcn.00403484
movzx edx, byte [esi + 0x16]
cmp eax, edx
setl cl
movzx edx, word [esi + 0x17]
mov eax, ebx
call fcn.00600c88
mov byte [ebp - 5], al
jmp 0x5fc32c
cmp al, 0xf
jne 0x5fbea2
mov byte [ebp - 5], 0
mov eax, dword [ebx + 0x2fc]
test eax, eax
je 0x5fbe8d
movzx edx, word [esi + 0x17]
call fcn.005045a8
mov edx, 0x5fc3d0
lea eax, [ebp - 0x54]
call fcn.004039c4
lea edx, [ebx + 0x15]
lea eax, [ebp - 0x54]
mov cl, 0xf
call fcn.00403994
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x74]
call fcn.004039c4
mov edx, 0x5fc3d4
lea eax, [ebp - 0x74]
mov cl, 0x1f
call fcn.00403994
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x44]
call fcn.004055f8
push dword [ebp - 0x44]
lea edx, [ebp - 0x78]
movzx eax, word [esi + 0x17]
call fcn.0040a790
push dword [ebp - 0x78]
push 0x5fc3f0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x2fc]
call fcn.00505e24
mov byte [ebp - 5], 1
jmp 0x5fc32c
push 1
xor ecx, ecx
mov edx, 0x5fc3fc
mov eax, ebx
call fcn.0060cf8c
jmp 0x5fc32c
cmp al, 0xe
jne 0x5fbeff
mov byte [ebp - 5], 0
movzx eax, word [esi + 0x1f]
movzx edx, ax
imul edx, edx, 0x3c
cmp edx, dword [ebx + 0x3968]
jg 0x5fbeea
movzx eax, ax
imul eax, eax, 0x3c
sub dword [ebx + 0x3968], eax
movzx edx, word [esi + 0x17]
movzx eax, word [esi + 0x19]
imul edx, eax
mov eax, ebx
call fcn.005e3d0c
mov eax, ebx
call fcn.00613964
mov byte [ebp - 5], 1
jmp 0x5fc32c
push 1
xor ecx, ecx
mov edx, 0x5fc41c
mov eax, ebx
call fcn.0060cf8c
jmp 0x5fc32c
cmp al, 0xd
jne 0x5fc00b
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x15]
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x5fbf61
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x3c]
call fcn.0040a790
mov eax, dword [ebp - 0x7c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x3a]
call fcn.0040a790
mov eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 4]
add edx, 0x25
call fcn.004055f8
mov edx, dword [ebp - 0x84]
mov eax, ebx
pop ecx
call fcn.005fc978
jmp 0x5fc32c
lea eax, [ebp - 0x184]
mov edx, dword [ebx + 0x2e0]
mov edx, dword [edx + 8]
mov ecx, 0xff
call fcn.00405630
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 4]
add eax, 0x16
mov cl, 0xe
call fcn.004039d0
lea eax, [ebp - 0x184]
mov edx, dword [ebx + 0x2e0]
mov edx, dword [edx + 4]
mov ecx, 0xff
call fcn.00405630
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 4]
add eax, 0x25
mov cl, 0x14
call fcn.004039d0
mov eax, dword [ebp - 4]
movzx edx, word [ebx + 0x24]
mov word [eax + 0x3a], dx
mov eax, dword [ebp - 4]
movzx edx, word [ebx + 0x28]
mov word [eax + 0x3c], dx
mov eax, dword [ebp - 4]
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x188]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005ecd24
mov eax, dword [ebp - 0x188]
push eax
mov cx, 0x14b8
mov edx, ebx
mov eax, ebx
call fcn.0060a154
jmp 0x5fc32c
cmp al, 0xc
jne 0x5fc31f
xor eax, eax
cmp word [esi + 0x29], 0
jbe 0x5fc095
mov byte [ebx + 0x1fe], 1
movzx eax, word [esi + 0x29]
mov word [ebx + 0x204], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x210], eax
push 1
push 0x5fc43c
lea edx, [ebp - 0x190]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x190]
push 0x5fc450
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x18c]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov cl, 1
mov edx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, 1
cmp word [esi + 0x2d], 0
jbe 0x5fc115
mov byte [ebx + 0x1ff], 1
movzx eax, word [esi + 0x2d]
mov word [ebx + 0x206], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x214], eax
push 1
push 0x5fc45c
lea edx, [ebp - 0x198]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x198]
push 0x5fc450
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x194]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov cl, 1
mov edx, 7
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, 1
cmp word [esi + 0x31], 0
jbe 0x5fc195
mov byte [ebx + 0x200], 1
movzx eax, word [esi + 0x31]
mov word [ebx + 0x208], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x218], eax
push 1
push 0x5fc470
lea edx, [ebp - 0x1a0]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x1a0]
push 0x5fc450
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x19c]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov cl, 1
mov edx, 2
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, 1
cmp word [esi + 0x23], 0
jbe 0x5fc207
mov byte [ebx + 0x201], 1
movzx eax, word [esi + 0x23]
mov word [ebx + 0x20a], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x21c], eax
push 1
push 0x5fc484
lea edx, [ebp - 0x1a8]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x1a8]
push 0x5fc450
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x1a4]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov al, 1
cmp word [esi + 0x21], 0
jbe 0x5fc287
mov byte [ebx + 0x1fc], 1
movzx eax, word [esi + 0x21]
mov word [ebx + 0x20c], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x220], eax
push 1
push 0x5fc49c
lea edx, [ebp - 0x1b0]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x1b0]
push 0x5fc450
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x1ac]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov cl, 1
mov edx, 0xa
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, 1
cmp word [esi + 0x25], 0
jbe 0x5fc307
mov byte [ebx + 0x1fd], 1
movzx eax, word [esi + 0x25]
mov word [ebx + 0x20e], ax
call sub.kernel32.dll_GetTickCount_1
movzx edx, word [esi + 0x27]
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebx + 0x224], eax
push 1
push 0x5fc4b0
lea edx, [ebp - 0x1b8]
movzx eax, word [esi + 0x27]
call fcn.0040a790
push dword [ebp - 0x1b8]
push 0x5fc450
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.00405728
mov edx, dword [ebp - 0x1b4]
mov cl, 1
mov eax, ebx
call fcn.0060cf8c
mov cl, 1
mov edx, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov al, 1
test al, al
je 0x5fc32c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x5c]
mov eax, ebx
call fcn.0060f130
mov byte [ebp - 5], 1
jmp 0x5fc32c
movzx edx, al
mov eax, ebx
call fcn.005fc698
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fc37b
lea eax, [ebp - 0x1b8]
mov edx, 0xd
call fcn.004053b8
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.004053b8
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.004053b8
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004053b8
ret