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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
mov eax, 0x5254d4
call fcn.00503ebc
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0xb4], edx
lea esi, [ebp - 0x160]
mov ecx, dword [ebp - 0xb4]
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xb4]
push eax
call fcn.0042caec
pop ecx
mov byte [ebp + eax - 0x161], 0
mov edx, dword [ebp - 0xb4]
push edx
call fcn.0042caec
pop ecx
add dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.00408540
pop ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xb4]
push eax
call fcn.0042caec
pop ecx
add dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
push edx
call fcn.00408540
pop ecx
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.0042caec
pop ecx
add dword [ebp - 0xb4], eax
mov word [ebp - 0x48], 8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xb4]
call fcn.0050f7a0
inc dword [ebp - 0x3c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c]
call fcn.00436ed4
mov dword [ebp - 0xb0], eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0050f900
mov word [ebp - 0x48], 0x14
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x18]
call fcn.0050f7a0
inc dword [ebp - 0x3c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x748]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0xb8], eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0050f900
cmp dword [ebp - 0xb8], 0
jge 0x407925
mov word [ebp - 0x48], 0x20
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x1c]
call fcn.0050f7a0
inc dword [ebp - 0x3c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x760]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0xbc], eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0050f900
cmp dword [ebp - 0xbc], 0
jge 0x407925
mov ecx, dword [ebp - 0x58]
mov dword fs:[0], ecx
jmp 0x408538
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x328]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x32c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x33c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
cmp dword [ebp - 0x64], 0
je 0x4079ac
mov dl, 1
mov eax, dword [0x4bb520]
call fcn.004c18ec
mov dword [0x542998], eax
mov dl, 6
mov eax, dword [0x542998]
call fcn.004c2fa4
mov edx, 0x320
mov eax, dword [0x542998]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0x258
mov eax, dword [0x542998]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor eax, eax
xor edx, edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb0], edx
mov dl, 1
mov eax, dword [0x520ad0]
call fcn.00520d60
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xb8], 0
jl 0x407a01
push 0
mov dl, 1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x474dd4]
mov ecx, dword [ecx + 0x75c]
call fcn.004796e0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x880], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x74c]
mov eax, dword [ebp - 0xb8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xc4], edx
jmp 0x407a42
cmp dword [ebp - 0xbc], 0
jl 0x407a42
push 0
mov dl, 1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x474dd4]
mov ecx, dword [ecx + 0x774]
call fcn.004796e0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x880], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x764]
mov eax, dword [ebp - 0xbc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xc4], edx
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x880]
xor ecx, ecx
mov edx, dword [ebp - 0xc4]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x880]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x84]
add eax, eax
push eax
call fcn.00502e30
pop ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x84]
add edx, edx
push edx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x84]
add ecx, ecx
push ecx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x84]
shl eax, 2
push eax
call fcn.00502e30
pop ecx
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x84]
shl edx, 2
push edx
call fcn.00502e30
pop ecx
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
add ecx, ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
add ecx, ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
add ecx, ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
shl ecx, 2
mov edx, dword [ebp - 0xd4]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
shl ecx, 2
mov edx, dword [ebp - 0xd8]
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xac], 0
je 0x407c58
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0xc4]
mov eax, dword [ecx + 0x880]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0xac], 0x3d0900
jge 0x407c3a
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x5c]
call fcn.00412ad0
mov dword [ebp - 0xdc], 1
jmp 0x407c58
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x5c]
add edx, dword [ebp - 0xc4]
call fcn.00412d08
mov dword [ebp - 0xdc], 2
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + 0x888], 1
mov eax, dword [ebp - 0x5c]
call fcn.0040422c
mov byte [0x541e81], 1
mov byte [0x541e82], 1
xor edx, edx
mov dword [0x541e84], edx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0xe0], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x74], eax
mov byte [0x542994], 0
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x84]
jge 0x4082d5
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x74]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x5c]
add edx, dword [ebp - 0xc4]
mov eax, dword [ecx + 0x880]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x74]
movsx ecx, word [eax + edx*2]
sub ecx, 1
jb 0x407cf4
je 0x407e9d
dec ecx
je 0x408078
jmp 0x408206
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x74]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp dword [ebp - 0x64], 0
jne 0x407db5
mov word [ebp - 0x48], 0x2c
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x2f8]
mov eax, dword [edx + 0x160]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
call fcn.004bd270
mov word [ebp - 0x48], 0
jmp 0x407e90
mov word [ebp - 0x48], 0x38
mov eax, dword [ebp - 0xc0]
call fcn.0052161c
mov word [ebp - 0x48], 0
jmp 0x407de6
mov ecx, dword [ebp - 0xc0]
mov eax, dword [0x542998]
push ecx
call fcn.004c1eb4
xor ecx, ecx
xor edx, edx
call fcn.004bd270
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x3e4]
push edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x3e0]
mov ecx, dword [0x542998]
mov eax, dword [ebp - 0x5c]
call fcn.0042c1b4
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x3e4]
call fcn.004c1eb4
call fcn.004bd910
push eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov eax, dword [ebp - 0xa0]
push eax
mov edx, dword [ebp - 0x5c]
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 - 0x94], edx
jmp 0x408206
cmp dword [ebp - 0x94], 0
jne 0x408206
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x74]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp dword [ebp - 0x64], 0
jne 0x407f8a
mov word [ebp - 0x48], 0x44
mov edx, dword [ebp - 0xc0]
push edx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0xd0]
movsx ecx, word [eax + edx*2]
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x74]
add ecx, dword [ebp - 0xa4]
movsx edx, word [eax + edx*2]
mov eax, dword [ebp - 0x5c]
add edx, dword [ebp - 0xa0]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x160]
call fcn.004bd270
mov word [ebp - 0x48], 0
jmp 0x408206
mov word [ebp - 0x48], 0x50
mov eax, dword [ebp - 0xc0]
call fcn.0052161c
mov word [ebp - 0x48], 0
jmp 0x407fb3
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x542998]
push edx
call fcn.004c1eb4
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x74]
movsx ecx, word [edx + ecx*2]
mov edx, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0x74]
movsx edx, word [edx + ebx*2]
call fcn.004bd270
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x3e4]
push ecx
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x3e0]
mov ecx, dword [0x542998]
mov eax, dword [ebp - 0x5c]
call fcn.0042c1b4
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3e4]
call fcn.004c1eb4
call fcn.004bd910
push eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov eax, dword [ebp - 0xa0]
push eax
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx + 0x2f8]
mov eax, dword [ecx + 0x160]
call fcn.004bd910
push eax
call sub.gdi32.dll_BitBlt
jmp 0x408206
cmp dword [ebp - 0x94], 0
je 0x408206
mov edx, dword [ebp - 0x74]
dec edx
mov dword [ebp - 0x78], edx
jmp 0x4081f4
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x78]
movsx edx, word [ecx + eax*2]
sub edx, 1
jb 0x4080b5
je 0x4081e5
dec edx
je 0x4081f1
jmp 0x4081f1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x78]
mov eax, dword [edx + eax*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp dword [ebp - 0x64], 0
jne 0x408173
mov word [ebp - 0x48], 0x5c
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x2f8]
mov eax, dword [edx + 0x160]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
call fcn.004bd270
mov word [ebp - 0x48], 0
jmp 0x4081f1
mov eax, dword [ebp - 0xc0]
call fcn.0052161c
mov edx, dword [ebp - 0xc0]
mov eax, dword [0x542998]
push edx
call fcn.004c1eb4
xor ecx, ecx
xor edx, edx
call fcn.004bd270
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x3e4]
push edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x3e0]
mov ecx, dword [0x542998]
mov eax, dword [ebp - 0x5c]
call fcn.0042c1b4
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x3e4]
push edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ecx + 0x2f8]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax + 0x160]
call fcn.004bd270
jmp 0x4081f1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x78], eax
dec dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
sub edx, dword [ebp - 0x94]
cmp edx, dword [ebp - 0x78]
jle 0x408091
mov ecx, dword [0x53d35c]
mov eax, dword [ecx]
call fcn.004d040c
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x74]
imul edx, dword [ebp - 0x90]
sub eax, edx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x90]
jg 0x40825f
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x90]
je 0x408252
mov edx, dword [ebp - 0x90]
sub edx, dword [ebp - 0x68]
push edx
call sub.kernel32.dll_Sleep
inc dword [ebp - 0x74]
xor ecx, ecx
mov dword [ebp - 0x94], ecx
jmp 0x4082a5
mov eax, dword [ebp - 0x68]
cdq
idiv dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x68]
imul ecx, dword [ebp - 0x94]
sub eax, ecx
mov edx, dword [ebp - 0x90]
sub edx, eax
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
je 0x40829b
mov ecx, dword [ebp - 0x70]
push ecx
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 0x94]
inc eax
add dword [ebp - 0x74], eax
cmp dword [0x541e84], 0
je 0x4082c6
cmp dword [ebp - 0xb0], 0
je 0x4082c6
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x303c], 1
jmp 0x4082d5
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0x84]
jl 0x407cae
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x84]
mov edx, dword [eax + edx*4 - 4]
mov eax, dword [ebp - 0x5c]
add edx, dword [ebp - 0xc4]
xor ecx, ecx
mov eax, dword [eax + 0x880]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x690]
call fcn.004798b0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x84]
mov eax, dword [eax + 0x690]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x84]
mov eax, dword [edx + eax*4 - 4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x880]
mov eax, dword [eax + 0x690]
call fcn.00479460
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x690]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x690]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp dword [ebp - 0x64], 0
jne 0x4083e4
mov eax, dword [ebp - 0xc0]
call fcn.0052161c
mov edx, dword [ebp - 0xc0]
push edx
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x3dc]
call fcn.004c1eb4
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
call fcn.004bd270
mov eax, dword [ebp - 0x5c]
mov dl, 6
mov eax, dword [eax + 0x3dc]
call fcn.004c2fa4
mov ecx, dword [ebp - 0xc0]
push ecx
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x2f8]
mov eax, dword [edx + 0x160]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
call fcn.004bd270
mov eax, dword [ebp - 0xdc]
dec eax
je 0x4083f2
dec eax
je 0x4083fc
jmp 0x408404
mov eax, dword [ebp - 0x5c]
call fcn.00413028
jmp 0x408404
mov eax, dword [ebp - 0x5c]
call fcn.00413084
mov edx, dword [ebp - 0x5c]
mov byte [0x541e82], 0
mov byte [0x541e81], 0
mov byte [edx + 0x888], 0
mov eax, dword [ebp - 0x5c]
call fcn.0040422c
cmp dword [ebp - 0x64], 0
je 0x40845a
mov edx, dword [0x542998]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x40845a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x48], 0x74
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0x68
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x328]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x32c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x33c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x880]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4084bd
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov word [ebp - 0x48], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0x80
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x4084ed
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov word [ebp - 0x48], 0xa4
mov edx, 3
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0x98
mov eax, dword [ebp - 0xcc]
push eax
call fcn.00502c68
pop ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00502c68
pop ecx
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00502c68
pop ecx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00502c68
pop ecx
mov edx, dword [ebp - 0xd8]
push edx
call fcn.00502c68
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret