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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff14
push esi
xor ecx, ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b01c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0048ee00
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4af5e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
mov si, 0xfff6
call fcn.00404400
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
cmp eax, 0x3e8
jbe 0x4af616
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
inc dword [eax + 8]
mov eax, dword [0x529bec]
cmp dword [eax], 0
je 0x4b0197
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [0x529ad8]
cmp eax, dword [edx]
jne 0x4b0197
mov eax, dword [0x529bd4]
cmp byte [eax + 0xaf], 1
jne 0x4af859
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4af859
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov edx, dword [ebp - 0x10]
call fcn.00419164
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
jne 0x4af84d
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x12], 0x32
je 0x4af84d
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x124]
cdq
xor eax, edx
sub eax, edx
cmp eax, 9
jge 0x4af84d
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x103
call fcn.00494f5c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x22], 0
jbe 0x4af6fe
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x25
mov dword [ebp - 0x14], eax
jmp 0x4af70d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0xa
mov dword [ebp - 0x14], eax
mov eax, dword [0x529e68]
cmp byte [eax], 0
je 0x4af75b
mov eax, dword [0x529e78]
cmp byte [eax], 0
je 0x4af73f
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x220
jle 0x4af75b
cmp dword [ebp - 0x14], 0x100
jl 0x4af859
jmp 0x4af75b
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x2a0
jle 0x4af75b
cmp dword [ebp - 0x14], 0x80
jl 0x4af859
cmp dword [ebp - 0x30], 0
je 0x4af7a1
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x30]
call fcn.0048ee8c
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x30]
call fcn.0048f0ec
sar eax, 1
jns 0x4af78b
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0048e884
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x104
call fcn.00494f5c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4af84d
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x30]
call fcn.0048ee8c
mov eax, dword [ebp - 0x24]
cmp word [eax + 0x6a], 0
jbe 0x4af81e
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0xd0], eax
fild dword [ebp - 0xd0]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fdivp st(1)
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0xd8], eax
fild dword [ebp - 0xd8]
fmulp st(1)
call fcn.00403404
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x30]
call fcn.0048f0ec
sar eax, 1
jns 0x4af837
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0048e884
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4af674
push 1
mov eax, dword [ebp - 8]
call fcn.0048ee54
call fcn.004279a0
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x529bd4]
cmp byte [eax + 0xbe], 1
jne 0x4af9c9
mov eax, dword [0x529c68]
cmp byte [eax + 0x13], 0
jbe 0x4af9c9
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4afabf
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov edx, dword [ebp - 0x10]
call fcn.00419164
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4af9b8
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x89], 0
je 0x4af9b8
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
jne 0x4af9b8
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0
je 0x4af9b8
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xbc], 0
je 0x4af9b8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x40]
call fcn.004050c8
mov eax, dword [0x529bd4]
cmp byte [eax + 0xc0], 1
jne 0x4af93e
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
jmp 0x4af947
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x44]
call fcn.004050c8
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4af8b3
jmp 0x4afabf
mov eax, dword [0x529cb0]
cmp dword [eax], 0
je 0x4afabf
mov edx, dword [0x529cb0]
mov edx, dword [edx]
mov eax, dword [0x529ad8]
mov eax, dword [eax]
call fcn.004edf48
test al, al
je 0x4afabf
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x529cb0]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.004050c8
mov eax, dword [0x529bd4]
cmp byte [eax + 0xc0], 1
jne 0x4afa28
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
jmp 0x4afa35
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x529cb0]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
call fcn.004050c8
push ebp
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [0x529cb0]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
mov eax, dword [0x529c4c]
cmp byte [eax], 0
je 0x4afb78
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x529bec]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.004050c8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x529bec]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
call fcn.004050c8
push ebp
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004af48c
pop ecx
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4affb6
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x529ad8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc3be4]
mov edx, dword [ebp - 0x10]
call fcn.00419164
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x22], 0
jbe 0x4afbc6
mov dword [ebp - 0x14], 0xffffffe8
jmp 0x4afbcb
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp word [eax + 0x66], 0
jbe 0x4afdad
mov eax, dword [0x529bec]
mov eax, dword [eax]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x124]
cdq
xor eax, edx
sub eax, edx
cmp eax, 9
jge 0x4afdad
mov eax, dword [0x529bd4]
cmp byte [eax + 0xaf], 1
jne 0x4afdad
mov eax, dword [0x529bd4]
cmp byte [eax + 0xb0], 1
jne 0x4afdad
push 1
mov eax, dword [ebp - 8]
call fcn.0048ee54
call fcn.004279a0
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x529bd4]
cmp byte [eax + 0xb7], 1
jne 0x4afca3
mov eax, dword [0x529bec]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x4afca3
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x12], 0
jne 0x4afca3
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
call fcn.004099b8
push dword [ebp - 0xdc]
push 0x4b01d8
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
call fcn.004099b8
push dword [ebp - 0xe0]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x48]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004053c4
jmp 0x4afce5
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
call fcn.004099b8
push dword [ebp - 0xe4]
push 0x4b01d8
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
call fcn.004099b8
push dword [ebp - 0xe8]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004053c4
mov eax, dword [0x529e68]
cmp byte [eax], 0
je 0x4afd4d
mov eax, dword [0x529e78]
cmp byte [eax], 0
je 0x4afd24
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x220
jle 0x4afd4d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x19
add eax, dword [ebp - 0x14]
cmp eax, 0x100
jl 0x4affb6
jmp 0x4afd4d
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x2a0
jle 0x4afd4d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x19
add eax, dword [ebp - 0x14]
cmp eax, 0x80
jl 0x4affb6
mov eax, dword [ebp - 8]
call fcn.0048ee54
mov eax, dword [eax + 0xc]
mov edx, dword [0x529bd4]
mov edx, dword [edx + 0xfb0]
call fcn.004265f8
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
call fcn.0048ee54
mov edx, dword [ebp - 0x28]
call fcn.004277fc
sar eax, 1
jns 0x4afd84
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
push edx
mov eax, dword [ebp - 8]
call fcn.0048ee54
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, 0x19
add ecx, dword [ebp - 0x14]
pop edx
call fcn.00427718
mov eax, dword [ebp - 8]
call fcn.0048ee54
mov eax, dword [eax + 0xc]
mov edx, 0xffffff
call fcn.004265f8
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x8c], 0
je 0x4affaa
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0xb4]
cmp eax, 0xfa0
jae 0x4aff9d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
dec eax
test eax, eax
jl 0x4affaa
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x529e68]
cmp byte [eax], 0
je 0x4afecc
mov eax, dword [0x529e78]
cmp byte [eax], 0
je 0x4afe79
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4afe34
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
cmp edx, 0x220
jle 0x4afecc
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xbc]
sub edx, eax
imul eax, dword [ebp - 0xc], 0xe
add edx, eax
add edx, dword [ebp - 0x14]
cmp edx, 0x100
jl 0x4affaa
jmp 0x4afecc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4afe8d
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
cmp edx, 0x2a0
jle 0x4afecc
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xbc]
sub edx, eax
imul eax, dword [ebp - 0xc], 0xe
add edx, eax
add edx, dword [ebp - 0x14]
cmp edx, 0x80
jl 0x4affaa
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
je 0x4aff33
push 0x808080
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x8c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4aff1e
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.004f2b80
jmp 0x4aff8f
push 0xffffff
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x8c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4aff7c
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.004f2b80
inc dword [ebp - 0xc]
dec dword [ebp - 0x44]
jne 0x4afe08
jmp 0x4affaa
mov eax, dword [ebp - 0x24]
add eax, 0x8c
call fcn.00405030
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4afb9c
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa27], 1
je 0x4affd6
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa29], 1
jne 0x4b00e2
mov eax, dword [0x52a124]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4b00e2
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x52a124]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00419164
mov dword [ebp - 0x34], eax
mov eax, dword [0x529bd4]
mov eax, dword [eax + 0xf9c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa27], 0
jne 0x4b002f
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2d], 0
je 0x4b00d6
cmp dword [ebp - 0x34], 0
je 0x4b00d6
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa29], 1
jne 0x4b005e
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2d], 0
je 0x4b005e
mov eax, dword [0x529bd4]
mov eax, dword [eax + 0xf98]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa25], 1
jne 0x4b0075
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2c], 0
jne 0x4b0083
mov eax, dword [0x529bd4]
cmp byte [eax + 0xa25], 1
je 0x4b00d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 0x34]
movzx edx, word [eax]
mov eax, dword [0x529ad8]
mov eax, dword [eax]
call fcn.004ed44c
mov eax, dword [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0xec]
mov edx, dword [ebp - 0x34]
add edx, 0xc
call fcn.00405294
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0xa
mov edx, dword [ebp - 0x18]
sub edx, 0x14
mov eax, dword [ebp - 8]
call fcn.004f2cac
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x4afff4
mov eax, dword [0x529f64]
test byte [eax], 4
je 0x4b0104
push 0xffffff
push 0
push 0x4b01e4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004f2b80
mov eax, dword [ebp - 8]
call fcn.0048ee54
call fcn.0048dec0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 1
shr eax, cl
mov edx, dword [0x529f64]
and eax, dword [edx]
je 0x4b018e
mov edx, dword [ebp - 0xc]
add edx, 0x96
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
call fcn.00494f5c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4b018e
mov eax, dword [ebp - 0x30]
call fcn.0048f0ec
add dword [ebp - 0x10], eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x30]
call fcn.0048ee8c
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov edx, dword [0x529b30]
mov edx, dword [edx]
sub edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0048e884
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jne 0x4b011b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b01c9
lea eax, [ebp - 0xec]
mov edx, 5
call fcn.00405054
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00405054
ret