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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
call fcn.004040cc
mov ecx, 0x14
lea eax, [ebp - 0x90]
mov edx, dword [0x4010c4]
call fcn.004044f4
xor eax, eax
push ebp
push 0x57a8b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00403f18
test eax, eax
je 0x57a85f
mov byte [ebp - 0x25], 0
cmp dword [ebp - 8], 0
jne 0x579a0e
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0059fd00
and eax, 0xff
imul eax, eax, 0x22
mov eax, dword [eax*8 + 0x5c12bd]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
mov eax, 0x57a8c8
call fcn.00404200
test eax, eax
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x579a39
cmp byte [0x5c13fe], 0
jne 0x579a50
cmp byte [0x5c150e], 0
jne 0x579a50
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
cmp byte [eax*8 + 0x5c12ee], 0
je 0x579a6a
cmp byte [ebp + 8], 0
jne 0x579a6a
push 0
mov ecx, dword [0x5c16e8]
mov edx, 0x57a8d8
mov eax, dword [ebp - 0xc]
call fcn.00574690
jmp 0x57a85f
mov dl, 1
mov eax, dword [0x40f694]
call fcn.00402f88
mov dword [ebp - 0x34], eax
mov dl, 1
mov eax, dword [0x40f694]
call fcn.00402f88
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x40f694]
call fcn.00402f88
mov dword [ebp - 0x38], eax
xor edx, edx
push ebp
push 0x57a855
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0xc]
dec ecx
mov edx, dword [0x5bc024]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.005959a0
cmp byte [ebp - 1], 0
je 0x579ae0
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00564894
mov cl, 1
mov dl, 2
mov eax, dword [ebp - 0xc]
call fcn.00564894
jmp 0x579af0
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.00564894
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x57a15c
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
call dword [esi + 0xc]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
call fcn.00403f18
cmp eax, 2
jle 0x579c1c
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5b
jne 0x579c1c
mov eax, dword [ebp - 0x24]
call fcn.00403f18
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax - 1], 0x5d
jne 0x579c1c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00403d34
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, 1
call fcn.0040415c
mov eax, dword [ebp - 0x20]
call fcn.00403f18
mov edx, eax
lea eax, [ebp - 0x20]
mov ecx, 1
call fcn.0040415c
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x5c12f8]
call fcn.00403f64
mov eax, dword [ebp - 0x94]
call fcn.0046ad3c
test al, al
je 0x579c1c
mov dl, 1
mov eax, dword [0x40f694]
call fcn.00402f88
mov esi, eax
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x5c12f8]
call fcn.00403f64
mov edx, dword [ebp - 0x94]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x579c10
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
call dword [edi + 0x54]
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x579be7
mov eax, esi
call fcn.00402fb8
jmp 0x57a15c
mov eax, dword [ebp - 0x24]
mov edx, 0x57a93c
call fcn.00404028
jne 0x579c83
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x40]
jmp 0x579c75
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x24]
mov edx, 0x57a948
call fcn.00404028
je 0x579c5c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
mov edx, 0x57a948
call fcn.00404028
je 0x579c8e
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x579c35
jmp 0x579c8e
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x579df2
mov byte [ebp - 0x25], 1
mov edx, dword [ebp - 0x24]
mov eax, 0x57a954
call fcn.00404200
test eax, eax
jle 0x579d7a
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x57a960
call fcn.00404200
mov esi, eax
mov edx, dword [ebp - 0x24]
mov eax, 0x57a954
call fcn.00404200
inc eax
sub esi, eax
push esi
mov edx, dword [ebp - 0x24]
mov eax, 0x57a954
call fcn.00404200
mov edx, eax
add edx, 2
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.0040411c
push 1
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [0x5bc024]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
push 1
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [0x5bc024]
mov ecx, dword [ecx]
mov edx, 0x57a960
mov eax, dword [ebp - 0x2c]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x2c]
call fcn.00403d34
push 1
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [0x5bc024]
mov ecx, dword [ecx]
mov edx, 0x57a96c
mov eax, dword [ebp - 0x2c]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x2c]
call fcn.00403d34
jmp 0x579d87
lea eax, [ebp - 0x2c]
mov edx, 0x57a978
call fcn.00403d34
inc ebx
lea eax, [ebp + ebx*4 - 0x94]
push eax
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, 0x57a994
call fcn.004677bc
test al, al
je 0x579dbd
mov eax, dword [ebp + ebx*4 - 0x94]
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00404028
jne 0x579dc7
call fcn.004037b0
jmp 0x57a85f
push 1
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + ebx*4 - 0x94]
mov edx, 0x57a9a4
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9a4
call fcn.00404200
test eax, eax
jg 0x579c9e
cmp byte [ebp - 0x25], 0
je 0x579eb3
mov dword [ebp - 0x1c], 0x14
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x1c]
call fcn.00408fb8
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x57a9b0
call fcn.00403f64
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x24]
call fcn.00404200
test eax, eax
jle 0x579ea2
push 1
lea eax, [ebp - 0x94]
push eax
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x1c]
call fcn.00408fb8
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x98]
mov edx, 0x57a9b0
call fcn.00403f64
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
dec dword [ebp - 0x1c]
sub dword [ebp - 0x40], 4
cmp dword [ebp - 0x1c], 0
jne 0x579e1e
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x35c]
mov edx, 0x57a9bc
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9c8
call fcn.00404200
test eax, eax
jle 0x579f2b
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.00443ac8
lea edx, [ebp - 0x98]
call fcn.004435e8
mov ecx, dword [ebp - 0x98]
mov edx, 0x57a9c8
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
call fcn.00509108
test eax, eax
je 0x57a0fe
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9d4
call fcn.00404200
test eax, eax
jg 0x579f7d
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9e0
call fcn.00404200
test eax, eax
jg 0x579f7d
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9ec
call fcn.00404200
test eax, eax
jle 0x57a0fe
mov eax, dword [ebp - 8]
imul esi, dword [eax + 0xc], 0x22
mov byte [esi*8 + 0x5c133c], 1
mov eax, dword [esi*8 + 0x5c12c5]
call fcn.00508a9c
dec eax
test eax, eax
jl 0x57a0ed
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
mov edx, dword [ebp - 0x18]
call fcn.00509088
cmp byte [eax], 0
je 0x57a0e1
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
mov edx, dword [ebp - 0x18]
call fcn.00509088
cmp byte [eax + 0x36], 0
je 0x57a0e1
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
mov edx, dword [ebp - 0x18]
call fcn.00509088
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
mov edx, dword [ebp - 0x18]
call fcn.00509088
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov eax, dword [eax*8 + 0x5c12c5]
mov edx, dword [ebp - 0x18]
call fcn.00509088
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa4]
push eax
push 2
lea eax, [ebp - 0x94]
push eax
mov eax, 0x57a9d4
mov dword [ebp - 0xb0], eax
mov eax, 0x57a9e0
mov dword [ebp - 0xac], eax
mov eax, 0x57a9ec
mov dword [ebp - 0xa8], eax
lea edx, [ebp - 0xb0]
mov ecx, 2
mov eax, dword [ebp - 0x24]
call fcn.00511d00
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x57a0d6
inc esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x14]
dec esi
jne 0x57a0b1
push ebp
call fcn.00579944
pop ecx
test al, al
jne 0x57a0ed
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x579fac
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
mov byte [eax*8 + 0x5c133c], 0
jmp 0x57a148
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x57a148
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x57a121
cmp byte [0x5c1574], 0
jne 0x57a16c
push ebp
call fcn.00579944
pop ecx
test al, al
jne 0x57a16c
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x579b00
cmp byte [0x5c1574], 0
jne 0x57a180
push ebp
call fcn.00579944
pop ecx
test al, al
je 0x57a18a
call fcn.004037b0
jmp 0x57a85f
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x57a78e
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x57a371
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x57a960
call fcn.00404200
mov ebx, eax
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9f8
call fcn.00404200
inc eax
sub ebx, eax
sub ebx, 2
push ebx
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9f8
call fcn.00404200
mov edx, eax
add edx, 3
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.0040411c
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
dec eax
jne 0x57a21d
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0059a994
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x5d8]
jmp 0x57a230
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0059ab7c
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x5dc]
mov eax, dword [edi + 0x28]
call fcn.00461a40
mov esi, eax
dec esi
sub esi, 2
jl 0x57a321
inc esi
mov ebx, 2
mov eax, dword [edi + 0x28]
mov edx, ebx
call fcn.00461a50
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0x94]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
push eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x2c]
call fcn.00408a4c
mov edx, dword [ebp - 0x98]
pop eax
call fcn.00404028
jne 0x57a319
mov byte [ebp - 0x25], 1
mov eax, dword [edi + 0x28]
mov edx, ebx
call fcn.00461a50
mov edx, dword [eax + 0x4c]
lea eax, [ebp - 0x20]
call fcn.00403d34
mov edx, dword [ebp - 0x20]
mov eax, 0x57aa04
call fcn.00404200
test eax, eax
jle 0x57a2d4
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x57aa04
call fcn.00404200
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.0040411c
push 1
lea eax, [ebp - 0x94]
push eax
push 0x57a9f8
push dword [ebp - 0x2c]
push 0x57a960
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00403fd8
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
inc ebx
dec esi
jne 0x57a24a
cmp byte [ebp - 0x25], 0
jne 0x57a371
push 1
lea eax, [ebp - 0x94]
push eax
push 0x57a9f8
push dword [ebp - 0x2c]
push 0x57a960
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00403fd8
mov edx, dword [ebp - 0x98]
mov ecx, dword [0x5bc024]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x24]
call fcn.0046724c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x24]
call fcn.00403d34
mov edx, dword [ebp - 0x24]
mov eax, 0x57a9f8
call fcn.00404200
test eax, eax
jg 0x57a1b9
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x24]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57aa10
call fcn.00404028
jne 0x57a3d6
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0x22
cmp dword [eax*8 + 0x5c132b], 0
jne 0x57a3d6
mov dl, 1
mov eax, dword [0x40f694]
call fcn.00402f88
mov edx, dword [ebp - 8]
imul edx, dword [edx + 0xc], 0x22
mov dword [edx*8 + 0x5c132b], eax
jmp 0x57a76e
lea eax, [ebp - 0x98]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040411c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57aa20
call fcn.00404028
jne 0x57a43b
lea eax, [ebp - 0x24]
mov ecx, 4
mov edx, 1
call fcn.0040415c
push 0
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.005949f4
jmp 0x57a76e
lea eax, [ebp - 0x98]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040411c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57a8c8
call fcn.00404028
jne 0x57a49e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x45c]
cmp eax, dword [ebp - 8]
jne 0x57a496
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x460]
mov dword [ebp - 8], eax
jmp 0x57a76e
mov dword [ebp - 8], eax
jmp 0x57a76e
lea eax, [ebp - 0x98]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040411c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57aa30
call fcn.00404028
jne 0x57a5b7
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, 1
call fcn.0040415c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x35c]
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00588754
mov eax, dword [ebp - 0x24]
call fcn.00403f18
cmp eax, 4
jle 0x57a528
lea eax, [ebp - 0x24]
mov ecx, 5
mov edx, 1
call fcn.0040415c
jmp 0x57a535
lea eax, [ebp - 0x24]
mov edx, 0x57aa40
call fcn.00403d34
push 1
mov eax, dword [ebp - 0x24]
push eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0058002c
mov eax, dword [ebp - 8]
imul ebx, dword [eax + 0xc], 0x22
cmp dword [ebx*8 + 0x5c132b], 0
je 0x57a76e
mov eax, dword [ebx*8 + 0x5c1303]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x57a76e
inc esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 8]
imul ebx, dword [eax + 0xc], 0x22
mov eax, dword [ebx*8 + 0x5c1303]
mov edx, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx*8 + 0x5c132b]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x1c]
dec esi
jne 0x57a57e
jmp 0x57a76e
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x24]
call fcn.00408a4c
mov edx, dword [ebp - 0x94]
mov eax, 0x57aa4c
call fcn.00404200
dec eax
jne 0x57a637
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x35c]
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00588754
mov eax, dword [ebp - 0x24]
call fcn.00403f18
cmp eax, 4
jle 0x57a610
lea eax, [ebp - 0x24]
mov ecx, 5
mov edx, 1
call fcn.0040415c
jmp 0x57a61d
lea eax, [ebp - 0x24]
mov edx, 0x57aa40
call fcn.00403d34
push 1
mov eax, dword [ebp - 0x24]
push eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0058002c
jmp 0x57a76e
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x24]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57aa5c
call fcn.00404028
jne 0x57a68c
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.005740f0
mov dl, 3
mov eax, dword [ebp - 0xc]
call fcn.00594cf0
mov al, byte [0x5c1794]
or al, byte [0x5c1574]
jne 0x57a76e
push ebp
call fcn.00579944
pop ecx
test al, al
je 0x57a661
jmp 0x57a76e
lea eax, [ebp - 0x98]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040411c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408a4c
mov eax, dword [ebp - 0x94]
mov edx, 0x57aa6c
call fcn.00404028
jne 0x57a75d
lea eax, [ebp - 0x24]
mov ecx, 6
mov edx, 1
call fcn.0040415c
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0xb
lea edx, [ebp - 0xb8]
xor ecx, ecx
mov eax, 0x57aa7c
call fcn.0040a09c
mov edx, dword [ebp - 0x94]
mov ecx, dword [0x5c16ec]
mov eax, dword [ebp - 0xc]
call fcn.00574690
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.00409190
imul ebx, eax, 0x3e8
call sub.kernel32.dll_GetTickCount
add ebx, eax
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00594cf0
call sub.kernel32.dll_GetTickCount
cmp ebx, eax
setle al
or al, byte [0x5c1574]
jne 0x57a76e
push ebp
call fcn.00579944
pop ecx
test al, al
je 0x57a734
jmp 0x57a76e
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004d473c
cmp byte [0x5c1574], 0
jne 0x57a78e
push ebp
call fcn.00579944
pop ecx
test al, al
jne 0x57a78e
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x57a1a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a85f
mov eax, dword [ebp - 0x34]
call fcn.00402fb8
mov eax, dword [ebp - 0x30]
call fcn.00402fb8
mov eax, dword [ebp - 0x38]
call fcn.00402fb8
cmp byte [ebp - 1], 0
je 0x57a7d3
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00564894
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 0xc]
call fcn.00564894
jmp 0x57a7e3
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.00564894
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x40], 0x5c143b
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
test eax, eax
je 0x57a848
xor edx, edx
push ebp
push 0x57a841
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [0x5bc024]
mov edx, dword [edx]
push edx
push 0
push 0
push 0
push 0
mov ecx, eax
mov edx, dword [0x5bc024]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.005794ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a848
mov eax, dword [ebp - 0x40]
call fcn.004690c0
ret
add dword [ebp - 0x40], 0x110
dec dword [ebp - 0x18]
jne 0x57a7f1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a8b7
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00403cc0
lea eax, [ebp - 0x90]
mov ecx, 0x14
mov edx, dword [0x4010c4]
call fcn.004045c0
lea eax, [ebp - 0x2c]
call fcn.00403c9c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403cc0
lea eax, [ebp - 0x10]
call fcn.00403c9c
ret