Function at 0x10051800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1107
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x101279d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xc8], eax
xor esi, esi
push esi
push 0x100000
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], esi
call fcn.1005b480
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.1005bfb0
test al, al
jne 0x100518ce
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0
call fcn.1009e1e9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100518c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x10051dd0
or eax, 0xffffffff
mov byte [ebp - 0x99], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
call fcn.10095170
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x10051916
push 0x80004005
call fcn.10001150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xd0], esi
jmp 0x10051936
xor esi, esi
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x16c]
call fcn.1005b8b0
test eax, eax
je 0x10051d43
lea ecx, [ebp - 0xa0]
call fcn.100035b0
mov ecx, eax
call fcn.10003240
cmp dword [ebp - 0xd0], esi
jne 0x10051a07
mov eax, dword [ebp - 0xa0]
mov ecx, 0xa
mov esi, str.VobSub_index_file__v
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [eax - 0xc], 0
mov esi, eax
jl 0x100519ed
lea edx, [ebp - 0x58]
push edx
push eax
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x100519ed
sub eax, dword [ebp - 0xa0]
sar eax, 1
mov edi, eax
js 0x100519ed
lea eax, [ebp - 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100519b0
mov ecx, dword [ebp - 0xc8]
sub eax, edx
sar eax, 1
push ecx
add eax, edi
lea edx, [esi + eax*2]
push 0x100ee168
push edx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jne 0x100519ed
mov eax, dword [ebp - 0xc8]
cmp dword [eax], 7
jle 0x10051aac
push 0
push 0
push str.Wrong_file_version_
call fcn.1009664a
mov byte [ebp - 0x99], 1
jmp 0x10051d30
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx - 0xc]
cmp eax, esi
je 0x10051d30
test eax, eax
js 0x10052bca
cmp word [edx], 0x23
jne 0x10051aac
mov ecx, 6
mov esi, str.Vob_Cell_ID:
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, edx
test eax, eax
jl 0x10051d30
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x10051d2a
sub eax, dword [ebp - 0xa0]
sar eax, 1
mov esi, eax
js 0x10051d30
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051a70
sub eax, edx
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0xd4]
push ecx
sar eax, 1
lea edx, [ebp - 0xd8]
push edx
add eax, esi
lea eax, [edi + eax*2]
push str._d___d__PTS:__d_
push eax
call fcn.100a8807
add esp, 0x14
jmp 0x10051d30
mov eax, dword [ebp - 0xa0]
cmp dword [eax - 0xc], 0
jle 0x10051d30
push 0x3a
push eax
call fcn.100a9db0
add esp, 8
test eax, eax
je 0x10051d2a
sub eax, dword [ebp - 0xa0]
sar eax, 1
mov esi, eax
test esi, esi
jle 0x10051d30
push esi
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.100111f0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.100275c0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002980
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0xa4], edi
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051b3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
push esi
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.10003630
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.10003520
mov eax, dword [ebp - 0x110]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051b86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xa0]
call fcn.100035b0
mov ecx, eax
call fcn.10003240
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 0xc], 0
jne 0x10051bcd
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051d2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10051d30
lea ecx, [ebp - 0xa4]
push str.size
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051c2a
mov ecx, dword [ebp - 0xa0]
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
push str._dx_d
push ecx
call fcn.100a8807
add esp, 0x10
cmp eax, 2
je 0x10051c13
mov byte [ebp - 0x99], 1
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x120]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], eax
jmp 0x10051d04
lea ecx, [ebp - 0xa4]
push 0x100f0a98
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051c76
mov edx, dword [ebp - 0xa0]
lea esi, [ebx + 0x24]
push esi
lea edi, [ebx + 0x20]
push edi
push str._d__d
push edx
call fcn.100a8807
add esp, 0x10
cmp eax, 2
jne 0x10051cfd
mov esi, dword [esi]
mov edi, dword [edi]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], esi
jmp 0x10051d04
lea eax, [ebp - 0xa4]
push str.scale
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051dee
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx], 5
jge 0x10051cdc
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0xa8]
push edx
push str._d__
push eax
mov dword [ebp - 0xa8], 0x64
call fcn.100a8807
add esp, 0xc
cmp eax, 1
je 0x10051cce
mov byte [ebp - 0x99], 1
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
jmp 0x10051d04
lea ecx, [ebx + 0x34]
push ecx
add ebx, 0x30
push ebx
push str._d____d__
mov edx, dword [ebp - 0xa0]
push edx
call fcn.100a8807
add esp, 0x10
cmp eax, 2
je 0x10051d04
mov byte [ebp - 0x99], 1
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051d2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0xb0]
inc dword [ebp - 0xd0]
cmp byte [ebp - 0x99], 0
je 0x10051934
cmp byte [ebp - 0x99], 0
mov eax, dword [ebp - 0xa0]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051d99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0
call fcn.1009e1e9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a6f5d
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xa4]
push 0x100efca4
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051e26
mov ecx, dword [ebp - 0xa0]
add ebx, 0x38
push ebx
push 0x100ee168
push ecx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jmp 0x10051cfb
lea edx, [ebp - 0xa4]
push 0x100f1094
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051f79
lea ecx, [ebp - 0xa0]
call fcn.100275c0
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1298
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10051e7f
sub eax, ecx
sar eax, 1
jns 0x10051f6d
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f108c
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10051eab
sub eax, ecx
sar eax, 1
jns 0x10051f6d
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1290
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10051ed7
sub eax, ecx
sar eax, 1
jns 0x10051f61
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1090
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10051eff
sub eax, ecx
sar eax, 1
jns 0x10051f61
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1288
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10051f27
sub eax, ecx
sar eax, 1
jns 0x10051f55
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100ee164
push ecx
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x10051cfd
sub eax, dword [ebp - 0xa0]
sar eax, 1
js 0x10051cfd
mov dword [ebx + 0x3c], 0
jmp 0x10051d04
mov dword [ebx + 0x3c], 1
jmp 0x10051d04
mov dword [ebx + 0x3c], 2
jmp 0x10051d04
lea eax, [ebp - 0xa4]
push str.fadein_out
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051fa3
lea ecx, [ebx + 0x44]
push ecx
add ebx, 0x40
push ebx
push str._d__d
jmp 0x10051ce9
lea eax, [ebp - 0xa4]
push str.align
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x100521dd
lea ecx, [ebp - 0xa0]
call fcn.100275c0
lea ecx, [ebp - 0xa8]
push ecx
push 0x100edfec
lea edx, [ebp - 0xac]
xor esi, esi
push edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa8], esi
call fcn.10043af0
mov byte [ebp - 4], 8
lea edi, [esi + 1]
cmp byte [ebp - 0x99], 0
jne 0x100521cd
mov eax, dword [ebp - 0xac]
cmp dword [eax - 0xc], 0
je 0x100521cd
test esi, esi
jne 0x1005208e
lea ecx, [ebp - 0xac]
push 0x100f1290
push ecx
call fcn.1000fa40
add esp, 8
test al, al
jne 0x10052085
lea edx, [ebp - 0xac]
push 0x100f1090
push edx
call fcn.1000fa40
add esp, 8
test al, al
jne 0x10052085
lea eax, [ebp - 0xac]
push 0x100f1288
push eax
call fcn.1000fa40
add esp, 8
test al, al
jne 0x1005207c
lea ecx, [ebp - 0xac]
push 0x100ee164
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x1005217e
mov byte [ebx + 0x48], 0
jmp 0x10052185
mov byte [ebx + 0x48], 1
jmp 0x10052185
cmp esi, edi
jne 0x1005211a
lea edx, [ebp - 0xac]
push 0x100f1268
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x100520b5
xor esi, esi
jmp 0x10052185
lea eax, [ebp - 0xac]
push str.left
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x100520d9
mov dword [ebx + 0x4c], 0
jmp 0x10052185
lea ecx, [ebp - 0xac]
push str.center
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x100520f9
mov dword [ebx + 0x4c], edi
jmp 0x10052185
lea edx, [ebp - 0xac]
push str.right
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x1005217e
mov dword [ebx + 0x4c], 2
jmp 0x10052185
cmp esi, 2
jne 0x10052185
lea eax, [ebp - 0xac]
push 0x100f1238
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x10052140
mov dword [ebx + 0x50], 0
jmp 0x10052185
lea ecx, [ebp - 0xac]
push str.center
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x1005215d
mov dword [ebx + 0x50], edi
jmp 0x10052185
lea edx, [ebp - 0xac]
push str.bottom
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x1005217e
mov dword [ebx + 0x50], 2
jmp 0x10052185
mov byte [ebp - 0x99], 1
lea eax, [ebp - 0xa8]
push eax
push 0x100edfec
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.10043af0
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
call fcn.10003520
lea ecx, [ebp - 0xe8]
add esi, edi
mov byte [ebp - 4], 8
call fcn.100c7b50
cmp esi, 3
jl 0x10051ff7
lea ecx, [ebp - 0xac]
call fcn.100c7b50
jmp 0x10051d04
lea edx, [ebp - 0xa4]
push str.time_offset
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x100522f2
mov eax, dword [ebp - 0xa0]
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x10052bca
cmp word [eax], 0x2d
jne 0x10052213
mov bl, 1
push 0x100f1220
lea ecx, [ebp - 0xa0]
call fcn.10032980
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov eax, ecx
lea edx, [ebp - 0x114]
push edx
push eax
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0xa0]
mov edx, eax
push edx
lea eax, [ebp - 0xdc]
push eax
push str._d_c_d_c_d_c_d
push ecx
call fcn.100a8807
add esp, 0x24
cmp eax, 1
jne 0x10052285
mov edx, dword [ebp - 0xb0]
xor eax, eax
test bl, bl
sete al
lea eax, [eax + eax - 1]
imul eax, dword [ebp - 0xdc]
mov dword [edx + 0x54], eax
jmp 0x10051d04
cmp eax, 7
jne 0x100522d8
mov eax, dword [ebp - 0xdc]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0x130]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x114]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xb0]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
mov dword [edx + 0x54], eax
jmp 0x10051d04
mov edx, dword [ebp - 0xb0]
mov eax, 1
mov byte [ebp - 0x99], 1
mov dword [edx + 0x54], eax
jmp 0x10051d04
lea eax, [ebp - 0xa4]
push str.forced_subs
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x100523db
lea ecx, [ebp - 0xa0]
call fcn.100275c0
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1290
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x1005234b
sub eax, ecx
sar eax, 1
jns 0x100523d2
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1090
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10052373
sub eax, ecx
sar eax, 1
jns 0x100523d2
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100f1288
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x1005239b
sub eax, ecx
sar eax, 1
jns 0x100523c9
cmp dword [ecx - 0xc], 0
jl 0x10051cfd
push 0x100ee164
push ecx
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x10051cfd
sub eax, dword [ebp - 0xa0]
sar eax, 1
js 0x10051cfd
mov byte [ebx + 0x58], 0
jmp 0x10051d04
mov byte [ebx + 0x58], 1
jmp 0x10051d04
lea ecx, [ebp - 0xa4]
push str.langidx
push ecx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10052416
mov edx, dword [ebp - 0xa0]
add ebx, 0x140
push ebx
push 0x100ee168
push edx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jmp 0x10051cfb
lea eax, [ebp - 0xa4]
push str.palette
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x100524a2
lea ecx, [ebx + 0x9c]
push ecx
lea edx, [ebx + 0x98]
push edx
lea eax, [ebx + 0x94]
push eax
lea ecx, [ebx + 0x90]
push ecx
lea edx, [ebx + 0x8c]
push edx
lea eax, [ebx + 0x88]
push eax
lea ecx, [ebx + 0x84]
push ecx
lea edx, [ebx + 0x80]
push edx
lea eax, [ebx + 0x7c]
push eax
lea ecx, [ebx + 0x78]
push ecx
lea edx, [ebx + 0x74]
push edx
lea eax, [ebx + 0x70]
push eax
lea ecx, [ebx + 0x6c]
push ecx
mov ecx, dword [ebp - 0xa0]
lea edx, [ebx + 0x68]
push edx
lea eax, [ebx + 0x64]
push eax
add ebx, 0x60
push ebx
push str._x__x__x__x__x__x__x__x__x__x__x__x__x__x__x__x
push ecx
call fcn.100a8807
add esp, 0x48
cmp eax, 0x10
jmp 0x10051cfb
lea edx, [ebp - 0xa4]
push str.custom_colors
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x100526eb
lea ecx, [ebp - 0xa0]
call fcn.100275c0
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx - 0xc], 0
jl 0x10052563
push 0x100f1290
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x100524f7
sub eax, ecx
sar eax, 1
je 0x10052572
cmp dword [ecx - 0xc], 0
jl 0x10052563
push 0x100f1090
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x1005251b
sub eax, ecx
sar eax, 1
je 0x10052572
cmp dword [ecx - 0xc], 0
jl 0x10052563
push 0x100f1288
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x1005253f
sub eax, ecx
sar eax, 1
je 0x1005256c
cmp dword [ecx - 0xc], 0
jl 0x10052563
push 0x100ee164
push ecx
call fcn.100a73d9
mov ecx, dword [ebp - 0xa0]
add esp, 8
test eax, eax
je 0x10052563
sub eax, ecx
sar eax, 1
je 0x1005256c
mov byte [ebp - 0x99], 1
jmp 0x10052576
mov byte [ebx + 0x59], 0
jmp 0x10052576
mov byte [ebx + 0x59], 1
cmp dword [ecx - 0xc], 0
jl 0x10052598
push str.tridx:
push ecx
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x10052598
sub eax, dword [ebp - 0xa0]
sar eax, 1
jns 0x100525b3
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x99], 1
mov byte [ebp - 4], 3
call fcn.100c7b50
jmp 0x10051d30
add eax, 6
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10003630
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.10003520
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.100c7b50
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xcc]
push ecx
push 0x100f01f0
push edx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jne 0x10052598
mov eax, dword [ebp - 0xcc]
mov ecx, eax
sar ecx, 5
mov edx, eax
and ecx, 0x80
and edx, 0x100
or ecx, edx
mov edx, eax
and eax, 1
sar ecx, 5
add eax, eax
and edx, 0x10
or ecx, edx
add eax, eax
add eax, eax
sar ecx, 2
or ecx, eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xcc], ecx
cmp dword [eax - 0xc], 0
jl 0x10052598
push str.colors:
push eax
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x10052598
sub eax, dword [ebp - 0xa0]
sar eax, 1
js 0x10052598
add eax, 7
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10003630
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.10003520
lea ecx, [ebp - 0xfc]
call fcn.100c7b50
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x60]
push edx
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
push ecx
push str._x__x__x__x
push edx
call fcn.100a8807
add esp, 0x18
cmp eax, 4
jne 0x10052598
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebx + 0x18]
call fcn.1004e180
jmp 0x10051d04
lea edx, [ebp - 0xa4]
push 0x100f114c
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10052865
lea ecx, [ebp - 0xa0]
call fcn.100275c0
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax - 0xc]
test ecx, ecx
js 0x10052bca
movzx ebx, word [eax]
cmp ecx, 1
jl 0x10052bca
movzx edx, word [eax + 2]
movzx esi, bl
movzx edx, dl
shl esi, 8
or esi, edx
test ecx, ecx
js 0x1005275e
push str.index:
push eax
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x1005275e
sub eax, dword [ebp - 0xa0]
sar eax, 1
jns 0x10052779
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x99], 1
mov byte [ebp - 4], 3
call fcn.100c7b50
jmp 0x10051d2a
add eax, 6
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10003630
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.10003520
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 6
call fcn.100c7b50
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xb4]
push ecx
push 0x100ee168
push edx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jne 0x1005275e
mov eax, dword [ebp - 0xb4]
cmp eax, 0x1f
ja 0x1005275e
mov edi, dword [ebp - 0xb0]
cmp dword [edi + 0x140], 0
jge 0x100527ee
mov dword [edi + 0x140], eax
lea ecx, [eax*8]
sub ecx, eax
push esi
mov dword [edi + ecx*4 + 0x144], esi
call fcn.1004e0a0
mov edx, dword [eax*8 + 0x1012172c]
mov eax, dword [ebp - 0xb4]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [edi + ecx*4 + 0x148]
call fcn.100078b0
push esi
call fcn.1004e0a0
mov edx, dword [eax*8 + 0x1012172c]
mov eax, dword [ebp - 0xb4]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [edi + ecx*4 + 0x14c]
call fcn.100078b0
mov dword [ebp - 0xc4], 0
jmp 0x10051d04
cmp dword [ebp - 0xb4], 0
jl 0x10051cfd
lea edx, [ebp - 0xa4]
push 0x100f1134
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x100528b1
mov eax, dword [ebp - 0xb4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ebp - 0xa0]
lea ecx, [ebx + ecx*4 + 0x14c]
push edx
call fcn.10003520
jmp 0x10051d04
cmp dword [ebp - 0xb4], 0
jl 0x10051cfd
lea eax, [ebp - 0xa4]
push str.delay
push eax
call fcn.1000fa40
add esp, 8
test al, al
je 0x10052995
mov eax, dword [ebp - 0xa0]
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x10052bca
cmp word [eax], 0x2d
jne 0x100528f4
mov bl, 1
push 0x100f1220
lea ecx, [ebp - 0xa0]
call fcn.10032980
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov ecx, edx
lea eax, [ebp - 0x10c]
push eax
push ecx
lea edx, [ebp - 0x12c]
push edx
mov edx, dword [ebp - 0xa0]
mov eax, ecx
push eax
lea ecx, [ebp - 0x104]
push ecx
push str._d_c_d_c_d_c_d
push edx
call fcn.100a8807
add esp, 0x24
cmp eax, 7
jne 0x1005275e
mov eax, dword [ebp - 0x104]
mov edx, dword [ebp - 0x12c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [ebp - 0x10c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x124]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add dword [ebp - 0xc4], eax
jmp 0x10051d04
cmp dword [ebp - 0xb4], 0
jl 0x10051cfd
lea edx, [ebp - 0xa4]
push str.timestamp
push edx
call fcn.1000fa40
add esp, 8
test al, al
je 0x10051cfd
mov al, byte [ebp - 0xd8]
mov cl, byte [ebp - 0xd4]
mov edx, dword [ebp - 0xe4]
mov byte [ebp - 0x7f], al
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 0x7e], cl
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x70], 1
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x10052bca
cmp word [eax], 0x2d
jne 0x10052a00
mov bl, 1
push 0x100f1220
lea ecx, [ebp - 0xa0]
call fcn.10032980
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0xbc]
push edx
mov ecx, edx
lea eax, [ebp - 0xf8]
push eax
push ecx
lea edx, [ebp - 0xf0]
push edx
mov edx, dword [ebp - 0xa0]
mov eax, ecx
push eax
lea ecx, [ebp - 0xec]
push ecx
push str._d_c_d_c_d_c_d
push edx
call fcn.100a8807
add esp, 0x24
cmp eax, 7
jne 0x1005275e
mov eax, dword [ebp - 0xec]
mov edx, dword [ebp - 0xf0]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [ebp - 0xf8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x100]
mov edi, dword [ebp - 0xc4]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add eax, edi
cdq
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x8c], edx
cmp dword [eax - 0xc], 0
jl 0x1005275e
push str.filepos:
push eax
call fcn.100a73d9
add esp, 8
test eax, eax
je 0x1005275e
sub eax, dword [ebp - 0xa0]
sar eax, 1
js 0x1005275e
add eax, 8
push eax
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0xa0]
call fcn.10003630
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.10003520
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 6
call fcn.100c7b50
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x98]
push eax
push str._I64x
push ecx
call fcn.100a8807
add esp, 0xc
cmp eax, 1
jne 0x1005275e
mov esi, dword [ebp - 0xb0]
test edi, edi
jns 0x10052ba4
mov eax, dword [ebp - 0xb4]
lea edx, [eax*8]
sub edx, eax
mov ecx, dword [esi + edx*4 + 0x154]
test ecx, ecx
je 0x10052baa
dec ecx
push ecx
add eax, 0xc
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [esi + ecx*4]
call fcn.1004e3c0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x8c], eax
jg 0x10052ba4
mov edx, dword [ebp - 0x90]
jl 0x10052b8c
cmp edx, ecx
jae 0x10052ba4
mov ebx, ecx
sub ebx, edx
add edi, ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xb4]
add eax, 0xc
lea edx, [eax*8]
lea ecx, [ebp - 0x98]
sub edx, eax
push ecx
lea ecx, [esi + edx*4]
call fcn.1004f920
jmp 0x10051d04
push 0x80070057
call fcn.10001150
int3