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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x527e1f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x420]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x10]
jl 0x527ba5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x420]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x10]
jne 0x52702c
mov ebx, dword [0x68fdf8]
mov ebx, dword [ebx]
jmp 0x527094
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x420]
mov edx, dword [ebp - 0x10]
call fcn.0041b280
mov ebx, eax
mov eax, dword [0x68fdf8]
cmp ebx, dword [eax]
je 0x52708c
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, dword [ebx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jg 0x52708c
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
sub eax, dword [ebx + 0x10]
cmp eax, 0xa
jg 0x52708c
cmp dword [ebx + 0xc0], 0
je 0x52708c
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
sub eax, dword [ebx + 0x10]
cmp eax, 0xfffffff6
jge 0x527094
inc dword [ebp - 0x10]
jmp 0x526ffc
cmp byte [ebx + 0x16], 0
jne 0x5270ac
cmp byte [ebx + 0x37], 0
je 0x5270ac
mov dword [ebx + 0x25c], 0x16
jmp 0x5270b6
mov dword [ebx + 0x25c], 6
mov dword [ebp - 0x14], 0x320
cmp byte [ebx + 0x16], 0
jne 0x527136
cmp byte [ebx + 0x100], 0
je 0x527136
cmp byte [ebx + 0x4d], 0
jne 0x527136
cmp dword [ebx + 0xb4], 0
je 0x527b8c
mov eax, dword [ebx + 0xb4]
mov si, 0xfff8
call fcn.00404524
add dword [ebx + 0x25c], eax
mov eax, dword [ebx + 0xb4]
push eax
mov eax, dword [ebx + 0xb4]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527111
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
dec ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0058ac68
jmp 0x527b8c
mov eax, dword [0x690238]
cmp byte [eax + 0xe], 0
je 0x5273cf
cmp byte [ebx + 0x4d], 0
jne 0x527647
cmp byte [ebx + 0x142], 0
je 0x527647
mov eax, dword [0x68fdf8]
cmp ebx, dword [eax]
jne 0x52728c
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0xfe
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5271e7
mov eax, dword [ebp - 0x1c]
mov si, 0xfff8
call fcn.00404524
dec eax
add dword [ebx + 0x25c], eax
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x5271a9
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0047d590
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, pe_nt_image_headers32
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x52728c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
cmp word [ebx + 0x8d], 0
jbe 0x527250
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
movzx eax, word [ebx + 0x8d]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdivp st(1)
movzx eax, word [ebx + 0x89]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmulp st(1)
call fcn.004034f8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x52726d
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0xfe
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527309
mov eax, dword [ebp - 0x1c]
mov si, 0xfff8
call fcn.00404524
add dword [ebx + 0x25c], eax
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x5272cb
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0047d590
cmp byte [ebx + 0x17], 0xa
jne 0x527325
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0x101
call fcn.00484504
mov dword [ebp - 0x1c], eax
jmp 0x527339
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0xff
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527647
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
cmp word [ebx + 0x8b], 0
jbe 0x52738e
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
movzx eax, word [ebx + 0x8b]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdivp st(1)
movzx eax, word [ebx + 0x87]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmulp st(1)
call fcn.004034f8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x5273ab
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
jmp 0x527647
cmp byte [ebx + 0x4d], 0
jne 0x527647
cmp byte [ebx + 0x142], 0
je 0x527647
mov eax, dword [0x68fdf8]
cmp ebx, dword [eax]
jne 0x527518
add dword [ebx + 0x25c], 3
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 6
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527466
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527427
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
dec ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0047d590
mov eax, dword [0x69034c]
mov eax, dword [eax]
xor edx, edx
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527518
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], 4
cmp word [ebx + 0x8d], 0
jbe 0x5274da
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
movzx eax, word [ebx + 0x8d]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdivp st(1)
movzx eax, word [ebx + 0x89]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmulp st(1)
call fcn.004034f8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x5274f7
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
dec ecx
inc ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
add dword [ebx + 0x25c], 4
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 6
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x52758a
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x52754c
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0047d590
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527647
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
cmp byte [ebx + 0x17], 0xa
jne 0x5275c2
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x24], 6
jmp 0x5275ce
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 2
cmp word [ebx + 0x8b], 0
jbe 0x52760a
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
movzx eax, word [ebx + 0x8b]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdivp st(1)
movzx eax, word [ebx + 0x87]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fmulp st(1)
call fcn.004034f8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527627
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
inc ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
cmp word [ebx + 0x8b], 1
jbe 0x52777f
cmp byte [ebx + 0x4d], 0
jne 0x52777f
cmp byte [ebx + 0x142], 0
je 0x52777f
add dword [ebx + 0x25c], 0xc
lea edx, [ebp - 0x50]
movzx eax, word [ebx + 0x87]
call fcn.0040a1ec
push dword [ebp - 0x50]
push 0x527e38
lea edx, [ebp - 0x54]
movzx eax, word [ebx + 0x8b]
call fcn.0040a1ec
push dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004055d8
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.00405bc0
mov edx, dword [ebp - 0x58]
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047ccf8
sar eax, 1
jns 0x5276ca
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov dword [ebp - 0x18], edx
push 0xffffff
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 8]
call fcn.00405bc0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [0x68f780]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0047c8b4
cmp dword [ebx + 0xd4], 0
je 0x52777f
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0xb3
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x52777f
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
mov edx, dword [ebp - 0x18]
sub edx, eax
sub edx, 5
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jle 0x52774c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.0047d590
cmp byte [ebx + 0x4d], 0
jne 0x52783f
movzx eax, byte [ebx + 0x174]
dec eax
sub al, 0xa
jae 0x52783f
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x178]
mov ecx, 0x64
xor edx, edx
div ecx
mov ecx, 0xf
xor edx, edx
div ecx
movzx eax, byte [ebx + 0x174]
mov ecx, eax
shl eax, 4
sub eax, ecx
add eax, 0x3f7
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x52783f
add dword [ebx + 0x25c], 0x1e
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527819
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
add dword [ebx + 0x25c], 0xfffffff1
xor edi, edi
lea eax, [edi + edi*2]
cmp byte [ebx + eax*4 + 0x272], 0
je 0x5279e2
lea eax, [edi + edi*2]
cmp word [ebx + eax*4 + 0x26c], 0xb2
ja 0x5279e2
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + edi*8 + 0x2c4]
lea edx, [edi + edi*2]
movzx edx, word [ebx + edx*4 + 0x270]
add edx, edx
lea edx, [edx + edx*4]
cmp eax, edx
jb 0x5278e2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + edi*8 + 0x2c4], eax
lea eax, [edi + edi*2]
movzx eax, word [ebx + eax*4 + 0x26e]
cmp eax, dword [ebx + edi*8 + 0x2c0]
ja 0x5278c7
lea eax, [edi + edi*2]
movzx eax, word [ebx + eax*4 + 0x26e]
lea edx, [edi + edi*2]
movzx edx, byte [ebx + edx*4 + 0x272]
add eax, edx
dec eax
cmp eax, dword [ebx + edi*8 + 0x2c0]
jg 0x5278db
lea eax, [edi + edi*2]
movzx eax, word [ebx + eax*4 + 0x26e]
mov dword [ebx + edi*8 + 0x2c0], eax
jmp 0x5278e2
inc dword [ebx + edi*8 + 0x2c0]
lea eax, [edi + edi*2]
movzx eax, word [ebx + eax*4 + 0x26c]
mov edx, dword [0x6900d8]
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + edi*8 + 0x2c0]
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5279e2
lea eax, [edi + edi*2]
cmp byte [ebx + eax*4 + 0x273], 0
jne 0x52797f
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff8
call fcn.00404524
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
sub ecx, eax
add ecx, 2
lea eax, [edi + edi*2]
movsx eax, word [ebx + eax*4 + 0x276]
sub ecx, eax
lea eax, [edi + edi*2]
movsx eax, word [ebx + eax*4 + 0x274]
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
jmp 0x5279e2
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 0x7c
mov eax, dword [ebp - 0x1c]
mov si, 0xfff8
call fcn.00404524
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
sub ecx, eax
add ecx, 2
lea eax, [edi + edi*2]
movsx eax, word [ebx + eax*4 + 0x276]
sub ecx, eax
lea eax, [edi + edi*2]
movsx eax, word [ebx + eax*4 + 0x274]
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047e364
inc edi
cmp edi, 7
jne 0x527841
cmp byte [ebx + 0x16], 0x32
jne 0x527b8c
mov eax, ebx
mov edx, dword [0x59e578]
call fcn.004044d8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x37c], 3
je 0x527b8c
xor eax, eax
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + 0x240]
jbe 0x527a45
call sub.kernel32.dll_GetTickCount_1
add eax, 0x64
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x240], eax
mov eax, dword [ebp - 0x20]
inc byte [eax + 0x244]
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x244], 9
jbe 0x527a5b
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x244], 0
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x37c]
sub al, 1
jb 0x527a71
je 0x527a87
dec al
je 0x527a9d
jmp 0x527ab1
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0x29b
call fcn.00484504
mov dword [ebp - 0x1c], eax
jmp 0x527ab1
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0x29c
call fcn.00484504
mov dword [ebp - 0x1c], eax
jmp 0x527ab1
mov eax, dword [0x69034c]
mov eax, dword [eax]
mov edx, 0x29d
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527b8c
mov eax, dword [ebp - 0x1c]
mov si, 0xfff8
call fcn.00404524
add eax, 5
add dword [ebx + 0x25c], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527afc
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x244]
sub ecx, dword [eax*4 + 0x68b5d8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.0047d590
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x244]
add edx, 0x7c6
mov eax, dword [0x69034c]
mov eax, dword [eax]
call fcn.00484504
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x527b8c
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov si, 0xfff9
call fcn.00404524
sar eax, 1
jns 0x527b6a
adc eax, 0
mov edx, dword [ebx + 0xc0]
sub edx, eax
mov ecx, dword [ebx + 0xc4]
sub ecx, dword [ebx + 0x25c]
sub ecx, 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.005b6b24
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov si, 0xffed
call fcn.00404524
inc dword [ebp - 0x10]
jmp 0x526ffc
mov eax, dword [0x68fee8]
cmp dword [eax], 0
je 0x527d6f
mov edx, dword [0x68fee8]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.0052c8ec
test al, al
je 0x527d6f
mov eax, dword [0x68fee8]
mov eax, dword [eax]
cmp byte [eax + 0x16], 0x32
jne 0x527d08
mov eax, dword [0x68fee8]
mov eax, dword [eax]
cmp dword [eax + 0x54], 0
je 0x527ca8
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
push eax
lea eax, [ebp - 0x60]
mov edx, dword [0x68fee8]
mov edx, dword [edx]
mov edx, dword [edx + 0x54]
call fcn.00405bc0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc0]
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
sar eax, 1
jns 0x527c2d
adc eax, 0
sub edx, eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc4]
add ecx, 0x18
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047c8b4
push 0xffffff
lea eax, [ebp - 0x64]
mov edx, dword [0x68fee8]
mov edx, dword [edx]
mov edx, dword [edx + 0x58]
call fcn.00405bc0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc0]
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x527c85
adc eax, 0
sub edx, eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc4]
add ecx, 0x24
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047c8b4
jmp 0x527d6f
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
push eax
lea eax, [ebp - 0x68]
mov edx, dword [0x68fee8]
mov edx, dword [edx]
mov edx, dword [edx + 0x58]
call fcn.00405bc0
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc0]
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x527ce8
adc eax, 0
sub edx, eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc4]
add ecx, 0x1e
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047c8b4
jmp 0x527d6f
mov eax, dword [0x68fee8]
mov eax, dword [eax]
push dword [eax + 0x54]
push 0x527e44
mov eax, dword [0x68fee8]
mov eax, dword [eax]
push dword [eax + 0x58]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055d8
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc4]
add eax, 0x1e
push eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x68fee8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc0]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [0x68fee8]
mov eax, dword [eax]
call fcn.00526e18
mov eax, dword [0x68fe80]
cmp byte [eax], 0
je 0x527dea
mov eax, dword [0x68fdf8]
cmp dword [eax], 0
je 0x527dea
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
push dword [eax + 0x54]
push 0x527e44
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
push dword [eax + 0x58]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004055d8
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc4]
add eax, 0x1e
push eax
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc0]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
call fcn.00526e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527e26
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.00405a64
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405258
ret