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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
call fcn.00403fd8
mov ecx, 0x14
lea eax, [ebp - 0x88]
mov edx, dword [0x4010c4]
call fcn.0040446c
xor eax, eax
push ebp
push 0x521f60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00403e24
test eax, eax
je 0x521f0f
mov byte [ebp - 0x21], 0
cmp dword [ebp - 8], 0
jne 0x521122
mov eax, dword [ebp - 0xc]
call fcn.00543058
and eax, 0xff
imul eax, eax, 0xeb
mov eax, dword [eax + 0x54f14e]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
mov eax, 0x521f78
call fcn.0040410c
test eax, eax
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x521144
cmp byte [0x54f26e], 0
jne 0x521160
cmp byte [0x54f359], 0
jne 0x521160
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
cmp byte [eax + 0x54f183], 0
je 0x52117a
push 0
mov ecx, dword [0x54f558]
mov edx, 0x521f88
mov eax, dword [ebp - 0xc]
call fcn.0051d250
jmp 0x521f0f
mov dl, 1
mov eax, dword [0x40f498]
call fcn.00402f14
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x40f498]
call fcn.00402f14
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x40f498]
call fcn.00402f14
mov dword [ebp - 0x34], eax
cmp dword [0x54f3f8], 0x7b03253f
je 0x521f0f
xor edx, edx
push ebp
push 0x521f05
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 [0x54c6b8]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.00539468
cmp byte [ebp - 1], 0
je 0x521200
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0051008c
mov cl, 1
mov dl, 2
mov eax, dword [ebp - 0xc]
call fcn.0051008c
jmp 0x521210
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.0051008c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x521817
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
call dword [esi + 0xc]
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x20]
call fcn.00403e24
cmp eax, 2
jle 0x52133c
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0x5b
jne 0x52133c
mov eax, dword [ebp - 0x20]
call fcn.00403e24
mov edx, dword [ebp - 0x20]
cmp byte [edx + eax - 1], 0x5d
jne 0x52133c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00403c40
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.00404068
mov eax, dword [ebp - 0x1c]
call fcn.00403e24
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404068
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x54f1a8]
call fcn.00403e70
mov eax, dword [ebp - 0x8c]
call fcn.004570f8
test al, al
je 0x52133c
mov dl, 1
mov eax, dword [0x40f498]
call fcn.00402f14
mov esi, eax
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x54f1a8]
call fcn.00403e70
mov edx, dword [ebp - 0x8c]
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 0x521330
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x54]
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x521307
mov eax, esi
call fcn.00402f44
jmp 0x521817
mov eax, dword [ebp - 0x20]
mov edx, 0x521fec
call fcn.00403f34
jne 0x5213b9
cmp dword [0x54f3f8], 0xe69dceff
jne 0x521361
call fcn.004036bc
jmp 0x521f0f
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x40]
jmp 0x5213ab
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x20]
mov edx, 0x521ff8
call fcn.00403f34
je 0x521392
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x20]
mov edx, 0x521ff8
call fcn.00403f34
je 0x5213c4
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x52136b
jmp 0x5213c4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x521528
mov byte [ebp - 0x21], 1
mov edx, dword [ebp - 0x20]
mov eax, 0x522004
call fcn.0040410c
test eax, eax
jle 0x5214b0
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x522010
call fcn.0040410c
mov esi, eax
mov edx, dword [ebp - 0x20]
mov eax, 0x522004
call fcn.0040410c
inc eax
sub esi, eax
push esi
mov edx, dword [ebp - 0x20]
mov eax, 0x522004
call fcn.0040410c
mov edx, eax
add edx, 2
mov eax, dword [ebp - 0x20]
pop ecx
call fcn.00404028
push 1
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [0x54c6b8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
push 1
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [0x54c6b8]
mov ecx, dword [ecx]
mov edx, 0x522010
mov eax, dword [ebp - 0x28]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
call fcn.00403c40
push 1
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [0x54c6b8]
mov ecx, dword [ecx]
mov edx, 0x52201c
mov eax, dword [ebp - 0x28]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
call fcn.00403c40
jmp 0x5214bd
lea eax, [ebp - 0x28]
mov edx, 0x522028
call fcn.00403c40
inc ebx
lea eax, [ebp + ebx*4 - 0x8c]
push eax
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, 0x522044
call fcn.00453880
test al, al
je 0x5214f3
mov eax, dword [ebp + ebx*4 - 0x8c]
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
call fcn.00403f34
jne 0x5214fd
call fcn.004036bc
jmp 0x521f0f
push 1
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp + ebx*4 - 0x8c]
mov edx, 0x522054
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
mov edx, dword [ebp - 0x20]
mov eax, 0x522054
call fcn.0040410c
test eax, eax
jg 0x5213d4
cmp byte [ebp - 0x21], 0
je 0x5215e2
mov dword [ebp - 0x18], 0x14
lea esi, [ebp - 0x3c]
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x18]
call fcn.00408e4c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x522060
call fcn.00403e70
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x20]
call fcn.0040410c
test eax, eax
jle 0x5215d2
push 1
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x18]
call fcn.00408e4c
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x90]
mov edx, 0x522060
call fcn.00403e70
mov edx, dword [ebp - 0x90]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
dec dword [ebp - 0x18]
sub esi, 4
cmp dword [ebp - 0x18], 0
jne 0x521551
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1428]
mov edx, 0x52206c
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.004300a8
lea edx, [ebp - 0x90]
call fcn.0042fbc8
mov ecx, dword [ebp - 0x90]
mov edx, 0x522078
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
mov eax, dword [eax + 0x54f13a]
call fcn.0047bbe4
test eax, eax
je 0x5217b9
mov edx, dword [ebp - 0x20]
mov eax, 0x522084
call fcn.0040410c
test eax, eax
jg 0x52169d
mov edx, dword [ebp - 0x20]
mov eax, 0x522090
call fcn.0040410c
test eax, eax
jg 0x52169d
mov edx, dword [ebp - 0x20]
mov eax, 0x52209c
call fcn.0040410c
test eax, eax
jle 0x5217b9
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
mov byte [eax + 0x54f1cf], 1
mov eax, dword [eax + 0x54f13a]
call fcn.0047d094
mov esi, eax
test esi, esi
je 0x5217a6
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x9c], eax
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x1d]
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x21]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push eax
push 2
lea eax, [ebp - 0x8c]
push eax
mov eax, 0x522084
mov dword [ebp - 0xa8], eax
mov eax, 0x522090
mov dword [ebp - 0xa4], eax
mov eax, 0x52209c
mov dword [ebp - 0xa0], eax
lea edx, [ebp - 0xa8]
mov ecx, 2
mov eax, dword [ebp - 0x20]
call fcn.004c7f18
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x521772
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x52174b
push ebp
call fcn.00521058
pop ecx
test al, al
jne 0x5217a6
mov al, byte [0x5220a0]
push eax
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
mov eax, dword [eax + 0x54f13a]
mov cl, 4
mov edx, esi
call fcn.0047d210
mov esi, eax
test esi, esi
jne 0x5216c3
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
mov byte [eax + 0x54f1cf], 0
jmp 0x521803
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x521803
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x5217dc
cmp byte [0x54f3b0], 0
jne 0x521827
push ebp
call fcn.00521058
pop ecx
test al, al
jne 0x521827
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x521220
cmp byte [0x54f3b0], 0
jne 0x52183b
push ebp
call fcn.00521058
pop ecx
test al, al
je 0x521845
call fcn.004036bc
jmp 0x521f0f
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x521e47
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x521a2c
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x522010
call fcn.0040410c
mov ebx, eax
mov edx, dword [ebp - 0x20]
mov eax, 0x5220ac
call fcn.0040410c
inc eax
sub ebx, eax
sub ebx, 2
push ebx
mov edx, dword [ebp - 0x20]
mov eax, 0x5220ac
call fcn.0040410c
mov edx, eax
add edx, 3
mov eax, dword [ebp - 0x20]
pop ecx
call fcn.00404028
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
dec eax
jne 0x5218d8
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0053d170
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x664]
jmp 0x5218eb
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0053d30c
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x668]
mov eax, dword [edi + 0x28]
call fcn.0044e010
mov esi, eax
dec esi
sub esi, 2
jl 0x5219dc
inc esi
mov ebx, 2
mov eax, dword [edi + 0x28]
mov edx, ebx
call fcn.0044e020
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0x8c]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x28]
call fcn.004088e0
mov edx, dword [ebp - 0x90]
pop eax
call fcn.00403f34
jne 0x5219d4
mov byte [ebp - 0x21], 1
mov eax, dword [edi + 0x28]
mov edx, ebx
call fcn.0044e020
mov edx, dword [eax + 0x4c]
lea eax, [ebp - 0x1c]
call fcn.00403c40
mov edx, dword [ebp - 0x1c]
mov eax, 0x5220b8
call fcn.0040410c
test eax, eax
jle 0x52198f
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x5220b8
call fcn.0040410c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404028
push 1
lea eax, [ebp - 0x8c]
push eax
push 0x5220ac
push dword [ebp - 0x28]
push 0x522010
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00403ee4
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
inc ebx
dec esi
jne 0x521905
cmp byte [ebp - 0x21], 0
jne 0x521a2c
push 1
lea eax, [ebp - 0x8c]
push eax
push 0x5220ac
push dword [ebp - 0x28]
push 0x522010
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00403ee4
mov edx, dword [ebp - 0x90]
mov ecx, dword [0x54c6b8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x20]
call fcn.00453350
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
call fcn.00403c40
mov edx, dword [ebp - 0x20]
mov eax, 0x5220ac
call fcn.0040410c
test eax, eax
jg 0x521874
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x20]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x5220c4
call fcn.00403f34
jne 0x521a95
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0xc], 0xeb
cmp dword [eax + 0x54f1c1], 0
jne 0x521a95
mov dl, 1
mov eax, dword [0x40f498]
call fcn.00402f14
mov edx, dword [ebp - 8]
imul edx, dword [edx + 0xc], 0xeb
mov dword [edx + 0x54f1c1], eax
jmp 0x521e27
lea eax, [ebp - 0x90]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404028
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x5220d4
call fcn.00403f34
jne 0x521afa
lea eax, [ebp - 0x20]
mov ecx, 4
mov edx, 1
call fcn.00404068
push 0
push 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.005388dc
jmp 0x521e27
lea eax, [ebp - 0x90]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404028
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x521f78
call fcn.00403f34
jne 0x521b5d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4ac]
cmp eax, dword [ebp - 8]
jne 0x521b55
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4b0]
mov dword [ebp - 8], eax
jmp 0x521e27
mov dword [ebp - 8], eax
jmp 0x521e27
lea eax, [ebp - 0x90]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404028
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x5220e4
call fcn.00403f34
jne 0x521c76
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, 1
call fcn.00404068
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1428]
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0052d72c
mov eax, dword [ebp - 0x20]
call fcn.00403e24
cmp eax, 4
jle 0x521be7
lea eax, [ebp - 0x20]
mov ecx, 5
mov edx, 1
call fcn.00404068
jmp 0x521bf4
lea eax, [ebp - 0x20]
mov edx, 0x5220f4
call fcn.00403c40
push 1
mov eax, dword [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.005263d8
mov eax, dword [ebp - 8]
imul ebx, dword [eax + 0xc], 0xeb
cmp dword [ebx + 0x54f1c1], 0
je 0x521e27
mov eax, dword [ebx + 0x54f198]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x521e27
inc esi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 8]
imul ebx, dword [eax + 0xc], 0xeb
mov eax, dword [ebx + 0x54f198]
mov edx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x54f1c1]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x18]
dec esi
jne 0x521c3c
jmp 0x521e27
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x20]
call fcn.004088e0
mov edx, dword [ebp - 0x8c]
mov eax, 0x522100
call fcn.0040410c
dec eax
jne 0x521cf4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1428]
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0052d72c
mov eax, dword [ebp - 0x20]
call fcn.00403e24
cmp eax, 4
jle 0x521ccf
lea eax, [ebp - 0x20]
mov ecx, 5
mov edx, 1
call fcn.00404068
jmp 0x521cdc
lea eax, [ebp - 0x20]
mov edx, 0x5220f4
call fcn.00403c40
push 1
mov eax, dword [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.005263d8
jmp 0x521e27
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x20]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x522110
call fcn.00403f34
jne 0x521d49
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0051cdf8
mov dl, 3
mov eax, dword [ebp - 0xc]
call fcn.00538bbc
mov al, byte [0x54f608]
or al, byte [0x54f3b0]
jne 0x521e27
push ebp
call fcn.00521058
pop ecx
test al, al
je 0x521d1e
jmp 0x521e27
lea eax, [ebp - 0x90]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404028
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004088e0
mov eax, dword [ebp - 0x8c]
mov edx, 0x522120
call fcn.00403f34
jne 0x521e1a
lea eax, [ebp - 0x20]
mov ecx, 6
mov edx, 1
call fcn.00404068
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
lea edx, [ebp - 0xb0]
xor ecx, ecx
mov eax, 0x522130
call fcn.00409f80
mov edx, dword [ebp - 0x8c]
mov ecx, dword [0x54f55c]
mov eax, dword [ebp - 0xc]
call fcn.0051d250
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.00409024
imul ebx, eax, 0x3e8
call sub.kernel32.dll_GetTickCount
add ebx, eax
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00538bbc
call sub.kernel32.dll_GetTickCount
cmp ebx, eax
setle al
or al, byte [0x54f3b0]
jne 0x521e27
push ebp
call fcn.00521058
pop ecx
test al, al
je 0x521df1
jmp 0x521e27
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004938d8
cmp byte [0x54f3b0], 0
jne 0x521e47
push ebp
call fcn.00521058
pop ecx
test al, al
jne 0x521e47
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x521861
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521f0f
mov eax, dword [ebp - 0x30]
call fcn.00402f44
mov eax, dword [ebp - 0x2c]
call fcn.00402f44
mov eax, dword [ebp - 0x34]
call fcn.00402f44
mov eax, dword [0x54f2ac]
test eax, eax
je 0x521ea0
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
push edx
push 0
push 0
push 0
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
call fcn.00520d78
mov eax, 0x54f2ac
call fcn.004555e0
mov eax, dword [0x54f397]
test eax, eax
je 0x521ed4
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
push edx
push 0
push 0
push 0
mov edx, dword [0x54c6b8]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
call fcn.00520d78
mov eax, 0x54f397
call fcn.004555e0
cmp byte [ebp - 1], 0
je 0x521ef4
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0051008c
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 0xc]
call fcn.0051008c
jmp 0x521f04
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0051008c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521f67
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x88]
mov ecx, 0x14
mov edx, dword [0x4010c4]
call fcn.00404538
lea eax, [ebp - 0x28]
call fcn.00403ba8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x10]
call fcn.00403ba8
ret