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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov eax, 0x5255d4
call fcn.00503ebc
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0xdc], 0x54299c
mov word [ebp - 0xa6], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0x58]
je 0x408638
mov ax, 3
mov ecx, dword [ebp - 0x5c]
add ecx, ecx
shl ax, cl
or word [ebp - 0xa6], ax
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 8
jl 0x408616
mov edx, dword [ebp - 0xdc]
mov ax, word [ebp - 0xa6]
mov word [edx], ax
inc dword [ebp - 0x58]
add dword [ebp - 0xdc], 2
cmp dword [ebp - 0x58], 0x100
jl 0x408608
mov edx, dword [ebp - 0x9c]
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x15c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0042caec
pop ecx
mov byte [ebp + eax - 0x15d], 0
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0042caec
pop ecx
add dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00408540
pop ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0042caec
pop ecx
add dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00408540
pop ecx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0042caec
pop ecx
add dword [ebp - 0x9c], eax
mov word [ebp - 0x30], 8
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x9c]
call fcn.0050f7a0
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
call fcn.00436ed4
mov dword [ebp - 0x94], eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f900
mov word [ebp - 0x30], 0x14
lea edx, [ebp - 0x15c]
lea eax, [ebp - 8]
call fcn.0050f7a0
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x748]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0xa0], eax
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f900
cmp dword [ebp - 0xa0], 0
jge 0x4087d5
mov word [ebp - 0x30], 0x20
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0xc]
call fcn.0050f7a0
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x760]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0xa4], eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0050f900
cmp dword [ebp - 0xa4], 0
jge 0x4087d5
mov ecx, dword [ebp - 0x40]
mov dword fs:[0], ecx
jmp 0x4092c3
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x328]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x32c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x33c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [0x520ad0]
call fcn.00520d60
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x74c]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xa0], 0
jl 0x408872
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x75c]
mov dl, 1
mov eax, dword [0x474dd4]
call fcn.004796e0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x880], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x74c]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xb0], ecx
jmp 0x4088b3
cmp dword [ebp - 0xa4], 0
jl 0x4088b3
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x774]
mov dl, 1
mov eax, dword [0x474dd4]
call fcn.004796e0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x880], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x764]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
xor ecx, ecx
mov edx, dword [ebp - 0xb0]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x74]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x74], 0x21
jne 0x408978
mov dword [ebp - 0x98], 0x8235
cmp dword [ebp - 0x74], 0xf
jne 0x408988
mov dword [ebp - 0x98], 0x1046a
mov edx, dword [ebp - 0x68]
add edx, edx
push edx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x68]
add ecx, ecx
push ecx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x68]
add eax, eax
push eax
call fcn.00502e30
pop ecx
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0x68]
shl edx, 2
push edx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x68]
shl ecx, 2
push ecx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
add ecx, ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
add ecx, ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
add ecx, ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
shl ecx, 2
mov edx, dword [ebp - 0xc0]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
shl ecx, 2
mov edx, dword [ebp - 0xc4]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0x90], 0
je 0x408ad4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x8c]
add edx, dword [ebp - 0xb0]
mov eax, dword [ecx + 0x880]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x90], 0x3d0900
jge 0x408ab6
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x44]
call fcn.00412ad0
mov dword [ebp - 0xc8], 1
jmp 0x408ad4
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x44]
add edx, dword [ebp - 0xb0]
call fcn.00412d08
mov dword [ebp - 0xc8], 2
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x888], 1
mov eax, dword [ebp - 0x44]
call fcn.0040422c
mov byte [0x541e81], 1
mov byte [0x541e82], 1
xor edx, edx
mov dword [0x541e84], edx
mov dl, 1
mov eax, dword [0x4bb520]
call fcn.004c18ec
mov dword [ebp - 0xcc], eax
mov dl, 6
mov eax, dword [ebp - 0xcc]
call fcn.004c2fa4
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x7c]
add edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x80]
add edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dl, 1
mov eax, dword [0x4bb520]
call fcn.004c18ec
mov dword [ebp - 0xd0], eax
mov dl, 6
mov eax, dword [ebp - 0xd0]
call fcn.004c2fa4
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x44]
mov dl, 1
mov byte [eax + 0x26380], dl
mov ecx, dword [ebp - 0x44]
cmp byte [ecx + 0x26380], 0
je 0x408ba7
mov dl, 7
mov eax, dword [ebp - 0xcc]
call fcn.004c2fa4
mov dl, 7
mov eax, dword [ebp - 0xd0]
call fcn.004c2fa4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x3dc]
call fcn.004c1eb4
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004bcdd4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x3dc]
call fcn.004c1eb4
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.004bccb8
push 0x258
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, 0x320
xor edx, edx
xor eax, eax
call fcn.00475718
lea eax, [ebp - 0x16c]
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x3dc]
call fcn.004c1eb4
pop edx
call fcn.004bd398
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0xd8], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x58], eax
mov byte [0x542994], 0
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x68]
jge 0x40910d
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x58]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x44]
add edx, dword [ebp - 0xb0]
mov eax, dword [ecx + 0x880]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x58]
movsx ecx, word [eax + edx*2]
sub ecx, 1
jb 0x408c7d
je 0x408da3
dec ecx
je 0x408ee4
jmp 0x409057
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x58]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov word [ebp - 0x30], 0x2c
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov word [ebp - 0x30], 0
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xd0]
call fcn.004c1eb4
xor ecx, ecx
xor edx, edx
call fcn.004bd270
cmp word [ebp - 0x2e], 0
je 0x408d1f
ret
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x44]
call fcn.004092dc
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xcc]
call fcn.004c1eb4
call fcn.004bd910
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov eax, dword [ebp - 0x84]
push eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x2f8]
mov eax, dword [ecx + 0x160]
call fcn.004bd910
push eax
call sub.gdi32.dll_BitBlt
xor edx, edx
mov dword [ebp - 0x78], edx
jmp 0x409057
cmp dword [ebp - 0x78], 0
jne 0x409057
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x58]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov word [ebp - 0x30], 0x38
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov word [ebp - 0x30], 0
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xd0]
call fcn.004c1eb4
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0x58]
movsx ecx, word [edx + ecx*2]
mov edx, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0x58]
movsx edx, word [edx + ebx*2]
call fcn.004bd270
cmp word [ebp - 0x2e], 0
je 0x408e65
ret
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x44]
call fcn.004092dc
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xcc]
call fcn.004c1eb4
call fcn.004bd910
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov eax, dword [ebp - 0x84]
push eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x2f8]
mov eax, dword [ecx + 0x160]
call fcn.004bd910
push eax
call sub.gdi32.dll_BitBlt
jmp 0x409057
cmp dword [ebp - 0x78], 0
je 0x409057
mov edx, dword [ebp - 0x58]
dec edx
mov dword [ebp - 0x5c], edx
jmp 0x409048
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x5c]
movsx edx, word [ecx + eax*2]
sub edx, 1
jb 0x408f1e
je 0x40903c
dec edx
je 0x409045
jmp 0x409045
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x5c]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov word [ebp - 0x30], 0x44
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov word [ebp - 0x30], 0
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xd0]
call fcn.004c1eb4
xor ecx, ecx
xor edx, edx
call fcn.004bd270
cmp word [ebp - 0x2e], 0
je 0x408fc0
ret
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x44]
call fcn.004092dc
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xcc]
call fcn.004c1eb4
call fcn.004bd910
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov eax, dword [ebp - 0x84]
push eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x2f8]
mov eax, dword [ecx + 0x160]
call fcn.004bd910
push eax
call sub.gdi32.dll_BitBlt
jmp 0x409045
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x78]
mov dword [ebp - 0x5c], edx
dec dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x5c]
jle 0x408efa
mov eax, dword [0x53d35c]
mov eax, dword [eax]
call fcn.004d040c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x58]
imul dword [ebp - 0x98]
mov ebx, 0x3e8
cdq
idiv ebx
sub ecx, eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x74]
jg 0x4090ac
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x74]
je 0x4090a2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x4c]
push ecx
call sub.kernel32.dll_Sleep
inc dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x78], eax
jmp 0x4090e0
mov eax, dword [ebp - 0x4c]
cdq
idiv dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x4c]
imul ecx, dword [ebp - 0x78]
sub eax, ecx
mov edx, dword [ebp - 0x74]
sub edx, eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x4090d9
mov ecx, dword [ebp - 0x54]
push ecx
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 0x78]
inc eax
add dword [ebp - 0x58], eax
cmp dword [0x541e84], 0
je 0x409101
cmp dword [ebp - 0x94], 0
je 0x409101
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x303c], 1
jmp 0x40910d
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x68]
jl 0x408c37
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x68]
mov edx, dword [eax + edx*4 - 4]
mov eax, dword [ebp - 0x44]
add edx, dword [ebp - 0xb0]
xor ecx, ecx
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x68]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x68]
mov eax, dword [edx + eax*4 - 4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0xc8]
dec edx
je 0x4091b3
dec edx
je 0x4091bd
jmp 0x4091c5
mov eax, dword [ebp - 0x44]
call fcn.00413028
jmp 0x4091c5
mov eax, dword [ebp - 0x44]
call fcn.00413084
mov edx, dword [ebp - 0x44]
mov byte [0x541e82], 0
mov byte [0x541e81], 0
mov byte [edx + 0x888], 0
mov eax, dword [ebp - 0x44]
call fcn.0040422c
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x328]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x32c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x33c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x880]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x409248
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x30], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x30], 0x50
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x409278
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov word [ebp - 0x30], 0x74
mov edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x30], 0x68
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00502c68
pop ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00502c68
pop ecx
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.00502c68
pop ecx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00502c68
pop ecx
mov edx, dword [ebp - 0xc4]
push edx
call fcn.00502c68
pop ecx
mov ecx, dword [ebp - 0x40]
mov dword fs:[0], ecx
mov esp, ebp
mov edi, dword [ebp - 0x178]
mov esi, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x170]
pop ebp
ret