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

Disassembly:
push 0xffffffffffffffff
push 0x61dcfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push ebx
push 0x100000
lea ecx, [esp + 0x108]
mov dword [esp + 0x140], ebx
call fcn.004a50f0
mov esi, dword [esp + 0x140]
push esi
lea ecx, [esp + 0x104]
mov byte [esp + 0x13c], 1
call fcn.004a63b0
test al, al
jne 0x4c5918
mov eax, dword [esp + 0x128]
add eax, 0xfffffff0
mov byte [esp + 0x138], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c58d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x138], 0
call fcn.005c7aa4
lea eax, [esi - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c5e16
or eax, 0xffffffff
mov byte [esp + 0xf], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.005bc43d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4c5952
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x138], 3
mov dword [esp + 0x2c], ebx
push edi
nop
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x108]
call fcn.004a5ad0
test eax, eax
je 0x4c5d76
lea ecx, [esp + 0x14]
call fcn.00407f30
mov ecx, eax
call fcn.00407e90
cmp dword [esp + 0x30], ebx
jne 0x4c5a71
mov eax, dword [0x648188]
mov edx, dword [str.VobSub_index_file__v]
mov ecx, dword [0x64818c]
mov dword [esp + 0xb0], eax
mov eax, dword [0x648194]
mov dword [esp + 0xac], edx
mov edx, dword [0x648190]
mov dword [esp + 0xb4], ecx
mov cl, byte [0x648198]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb8], edx
mov byte [esp + 0xc0], cl
cmp dword [eax - 0xc], ebx
mov edi, eax
jl 0x4c5a5b
lea edx, [esp + 0xac]
push edx
push eax
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c5a5b
sub eax, dword [esp + 0x14]
mov esi, eax
js 0x4c5a5b
lea eax, [esp + 0xac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c5a21
mov ecx, dword [esp + 0x148]
sub eax, edx
push ecx
add eax, esi
add eax, edi
push 0x635f58
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x4c5a5b
mov edx, dword [esp + 0x148]
cmp dword [edx], 7
jle 0x4c5b31
push ebx
push ebx
push str.Wrong_file_version_
call fcn.005bdbc4
mov byte [esp + 0x13], 1
jmp 0x4c5d66
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x4c5d66
jl 0x4c6ad9
cmp byte [edi], 0x23
jne 0x4c5b31
mov eax, dword [str.Vob_Cell_ID:]
mov ecx, dword [0x648164]
mov edx, dword [0x648168]
mov dword [esp + 0x9c], eax
mov al, byte [0x64816c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov byte [esp + 0xa8], al
cmp dword [edi - 0xc], ebx
jl 0x4c5d66
lea ecx, [esp + 0x9c]
push ecx
push edi
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c5d66
sub eax, dword [esp + 0x14]
mov esi, eax
js 0x4c5d66
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c5b00
sub eax, edx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x40]
push edx
add eax, esi
add eax, edi
push str._d___d__PTS:__d_
push eax
call fcn.005ddf88
add esp, 0x14
jmp 0x4c5d66
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x4c5d66
push 0x3a
push eax
call fcn.005d8f05
add esp, 8
cmp eax, ebx
je 0x4c5d66
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, ebx
jle 0x4c5d66
push esi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.004048d0
mov ecx, eax
mov byte [esp + 0x13c], 4
call fcn.00407e30
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402800
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x13c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5bba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
push esi
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 7
call fcn.00403020
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x13c], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c5c0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00407f30
mov ecx, eax
call fcn.00407e90
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jne 0x4c5c3b
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 3
call fcn.00401a50
jmp 0x4c5d66
lea edx, [esp + 0x18]
push 0x63d980
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5c90
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x84]
push ecx
push str._dx_d
push edx
call fcn.005ddf88
add esp, 0x10
cmp eax, 2
je 0x4c5c7a
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
jmp 0x4c5d53
lea edx, [esp + 0x18]
push 0x648044
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5cd8
mov eax, dword [esp + 0x14]
lea esi, [ebp + 0x24]
push esi
lea edi, [ebp + 0x20]
push edi
push str._d__d
push eax
call fcn.005ddf88
add esp, 0x10
cmp eax, 2
jne 0x4c5d4e
mov esi, dword [esi]
mov edi, dword [edi]
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], esi
jmp 0x4c5d53
lea ecx, [esp + 0x18]
push 0x648034
push ecx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5e30
mov edx, dword [esp + 0x148]
cmp dword [edx], 5
mov ecx, dword [esp + 0x14]
jge 0x4c5d33
lea eax, [esp + 0x1c]
push eax
push str._d__
push ecx
mov dword [esp + 0x28], 0x64
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
je 0x4c5d27
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], eax
jmp 0x4c5d53
lea edx, [ebp + 0x34]
push edx
lea eax, [ebp + 0x30]
push eax
push str._d____d__
push ecx
call fcn.005ddf88
add esp, 0x10
cmp eax, 2
je 0x4c5d53
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 3
call fcn.00401a50
xor ebx, ebx
add dword [esp + 0x30], 1
cmp byte [esp + 0x13], 0
je 0x4c5970
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x13c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
mov byte [esp + 0x13c], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x13c], 0
call fcn.005c7aa4
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5e13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop edi
mov ecx, dword [esp + 0x130]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 8
lea edx, [esp + 0x18]
push str.alpha
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5e64
mov ecx, dword [esp + 0x14]
lea eax, [ebp + 0x38]
push eax
push 0x635f58
push ecx
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jmp 0x4c5d4c
lea edx, [esp + 0x18]
push str.smooth
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5f8b
lea ecx, [esp + 0x14]
call fcn.00407e30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x64812c
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c5eb2
sub eax, ecx
jns 0x4c5f7f
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x648008
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c5ed9
sub eax, ecx
jns 0x4c5f7f
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x648128
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c5efc
sub eax, ecx
jns 0x4c5f73
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x64800c
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c5f1f
sub eax, ecx
jns 0x4c5f73
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x648124
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c5f42
sub eax, ecx
jns 0x4c5f6b
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x643e04
push ecx
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c5d4e
sub eax, dword [esp + 0x14]
js 0x4c5d4e
mov dword [ebp + 0x3c], ebx
jmp 0x4c5d53
mov dword [ebp + 0x3c], 1
jmp 0x4c5d53
mov dword [ebp + 0x3c], 2
jmp 0x4c5d53
lea eax, [esp + 0x18]
push str.fadein_out
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5fb8
mov eax, dword [esp + 0x14]
lea ecx, [ebp + 0x44]
push ecx
lea edx, [ebp + 0x40]
push edx
push str._d__d
push eax
jmp 0x4c5d41
lea ecx, [esp + 0x18]
push str.align
push ecx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c61c3
lea ecx, [esp + 0x14]
call fcn.00407e30
lea edx, [esp + 0x1c]
push edx
push 0x630fd0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], ebx
xor esi, esi
call fcn.00460000
mov byte [esp + 0x13c], 8
lea edi, [esi + 1]
cmp byte [esp + 0x13], 0
jne 0x4c61b5
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebx
je 0x4c61b5
cmp esi, ebx
jne 0x4c608e
lea edx, [esp + 0x20]
push 0x648128
push edx
call fcn.0041d5a0
add esp, 8
test al, al
jne 0x4c6085
lea eax, [esp + 0x20]
push 0x64800c
push eax
call fcn.0041d5a0
add esp, 8
test al, al
jne 0x4c6085
lea ecx, [esp + 0x20]
push 0x648124
push ecx
call fcn.0041d5a0
add esp, 8
test al, al
jne 0x4c607c
lea edx, [esp + 0x20]
push 0x643e04
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6164
mov byte [ebp + 0x48], 0
jmp 0x4c6169
mov byte [ebp + 0x48], 1
jmp 0x4c6169
cmp esi, edi
jne 0x4c610a
lea eax, [esp + 0x20]
push 0x648114
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c60af
xor esi, esi
jmp 0x4c6169
lea ecx, [esp + 0x20]
push 0x64810c
push ecx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c60cd
mov dword [ebp + 0x4c], ebx
jmp 0x4c6169
lea edx, [esp + 0x20]
push 0x648104
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c60eb
mov dword [ebp + 0x4c], edi
jmp 0x4c6169
lea eax, [esp + 0x20]
push 0x6480fc
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6164
mov dword [ebp + 0x4c], 2
jmp 0x4c6169
cmp esi, 2
jne 0x4c6169
lea ecx, [esp + 0x20]
push 0x6480f8
push ecx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c612a
mov dword [ebp + 0x50], ebx
jmp 0x4c6169
lea edx, [esp + 0x20]
push 0x648104
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6145
mov dword [ebp + 0x50], edi
jmp 0x4c6169
lea eax, [esp + 0x20]
push 0x6480f0
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6164
mov dword [ebp + 0x50], 2
jmp 0x4c6169
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1c]
push ecx
push 0x630fd0
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x20]
call fcn.00460000
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 9
call fcn.00403020
lea ecx, [esp + 0x90]
add esi, edi
mov byte [esp + 0x13c], 8
call fcn.00401a50
cmp esi, 3
jl 0x4c6004
lea ecx, [esp + 0x20]
call fcn.00401a50
jmp 0x4c5d53
lea eax, [esp + 0x18]
push str.time_offset
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c62ad
mov eax, dword [esp + 0x14]
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x4c6ad9
cmp byte [eax], 0x2d
jne 0x4c61f4
mov bl, 1
push 0x6480ec
lea ecx, [esp + 0x18]
call fcn.00404770
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2e]
push edx
mov ecx, edx
lea eax, [esp + 0x90]
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x28]
mov eax, ecx
push eax
lea ecx, [esp + 0x58]
push ecx
push str._d_c_d_c_d_c_d
push edx
call fcn.005ddf88
add esp, 0x24
cmp eax, 1
jne 0x4c6253
xor eax, eax
test bl, bl
sete al
lea eax, [eax + eax - 1]
imul eax, dword [esp + 0x40]
mov dword [ebp + 0x54], eax
jmp 0x4c5d53
cmp eax, 7
jne 0x4c629b
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x88]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x68]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
mov dword [ebp + 0x54], eax
jmp 0x4c5d53
mov eax, 1
mov byte [esp + 0x13], 1
mov dword [ebp + 0x54], eax
jmp 0x4c5d53
lea edx, [esp + 0x18]
push str.forced_subs
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6378
lea ecx, [esp + 0x14]
call fcn.00407e30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x648128
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c62f7
sub eax, ecx
jns 0x4c636f
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x64800c
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c631a
sub eax, ecx
jns 0x4c636f
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x648124
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c633d
sub eax, ecx
jns 0x4c6366
cmp dword [ecx - 0xc], ebx
jl 0x4c5d4e
push 0x643e04
push ecx
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c5d4e
sub eax, dword [esp + 0x14]
js 0x4c5d4e
mov byte [ebp + 0x58], 0
jmp 0x4c5d53
mov byte [ebp + 0x58], 1
jmp 0x4c5d53
lea eax, [esp + 0x18]
push str.langidx
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c63af
mov edx, dword [esp + 0x14]
lea ecx, [ebp + 0x13c]
push ecx
push 0x635f58
push edx
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jmp 0x4c5d4c
lea eax, [esp + 0x18]
push str.palette
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6437
lea ecx, [ebp + 0x9c]
push ecx
lea edx, [ebp + 0x98]
push edx
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp + 0x90]
push ecx
lea edx, [ebp + 0x8c]
push edx
lea eax, [ebp + 0x88]
push eax
lea ecx, [ebp + 0x84]
push ecx
lea edx, [ebp + 0x80]
push edx
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x78]
push ecx
lea edx, [ebp + 0x74]
push edx
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x6c]
push ecx
lea edx, [ebp + 0x68]
push edx
mov edx, dword [esp + 0x4c]
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x60]
push ecx
push str._x__x__x__x__x__x__x__x__x__x__x__x__x__x__x__x
push edx
call fcn.005ddf88
add esp, 0x48
cmp eax, 0x10
jmp 0x4c5d4c
lea eax, [esp + 0x18]
push str.custom_colors
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c6662
lea ecx, [esp + 0x14]
call fcn.00407e30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4c64de
push 0x648128
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c6481
sub eax, ecx
je 0x4c64eb
cmp dword [ecx - 0xc], ebx
jl 0x4c64de
push 0x64800c
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c64a0
sub eax, ecx
je 0x4c64eb
cmp dword [ecx - 0xc], ebx
jl 0x4c64de
push 0x648124
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c64bf
sub eax, ecx
je 0x4c64e5
cmp dword [ecx - 0xc], ebx
jl 0x4c64de
push 0x643e04
push ecx
call fcn.005d9339
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c64de
sub eax, ecx
je 0x4c64e5
mov byte [esp + 0x13], 1
jmp 0x4c64ef
mov byte [ebp + 0x59], 0
jmp 0x4c64ef
mov byte [ebp + 0x59], 1
cmp dword [ecx - 0xc], ebx
jl 0x4c650c
push str.tridx:
push ecx
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c650c
sub eax, dword [esp + 0x14]
jns 0x4c6527
lea ecx, [esp + 0x18]
mov byte [esp + 0x13], 1
mov byte [esp + 0x13c], 3
call fcn.00401a50
jmp 0x4c5d66
add eax, 6
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0xa
call fcn.00403020
lea ecx, [esp + 0x98]
mov byte [esp + 0x13c], 6
call fcn.00401a50
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push 0x648098
push eax
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x4c650c
mov eax, dword [esp + 0x34]
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 [esp + 0x14]
mov dword [esp + 0x34], ecx
cmp dword [eax - 0xc], ebx
jl 0x4c650c
push str.colors:
push eax
call fcn.005d9339
add esp, 8
cmp eax, ebx
je 0x4c650c
sub eax, dword [esp + 0x14]
js 0x4c650c
add eax, 7
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0xb
call fcn.00403020
lea ecx, [esp + 0x70]
call fcn.00401a50
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0xd0]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0xd0]
push ecx
push str._x__x__x__x
push edx
call fcn.005ddf88
add esp, 0x18
cmp eax, 4
jne 0x4c650c
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [ebp + 0x18]
call fcn.004c3040
jmp 0x4c5d53
lea edx, [esp + 0x18]
push 0x642ce4
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c67ab
lea ecx, [esp + 0x14]
call fcn.00407e30
mov eax, dword [esp + 0x14]
mov edi, dword [eax - 0xc]
cmp edi, ebx
jl 0x4c6ad9
cmp edi, 1
mov dl, byte [eax]
jl 0x4c6ad9
mov cl, byte [eax + 1]
xor ebx, ebx
test edi, edi
mov bh, dl
mov bl, cl
mov esi, ebx
jl 0x4c5d4e
push str.index:
push eax
call fcn.005d9339
add esp, 8
test eax, eax
je 0x4c5d4e
sub eax, dword [esp + 0x14]
js 0x4c5d4e
add eax, 6
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0xc
call fcn.00403020
lea ecx, [esp + 0x94]
mov byte [esp + 0x13c], 6
call fcn.00401a50
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push 0x635f58
push edx
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x4c5d4e
mov eax, dword [esp + 0x24]
cmp eax, 0x1f
ja 0x4c5d4e
lea ecx, [eax*8]
sub ecx, eax
push esi
mov dword [ebp + ecx*4 + 0x140], esi
call fcn.004c2970
mov edx, dword [eax*8 + 0x6ec664]
mov eax, dword [esp + 0x28]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [ebp + ecx*4 + 0x144]
call fcn.00401e30
push esi
call fcn.004c2970
mov edx, dword [eax*8 + 0x6ec664]
mov eax, dword [esp + 0x28]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [ebp + ecx*4 + 0x148]
call fcn.00401e30
mov dword [esp + 0x2c], 0
jmp 0x4c5d53
cmp dword [esp + 0x24], ebx
jl 0x4c5d4e
lea edx, [esp + 0x18]
push 0x648078
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c67ee
mov eax, dword [esp + 0x24]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [esp + 0x14]
lea ecx, [ebp + ecx*4 + 0x148]
push edx
call fcn.00403020
jmp 0x4c5d53
cmp dword [esp + 0x24], ebx
jl 0x4c5d4e
lea eax, [esp + 0x18]
push str.delay
push eax
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c68bb
mov eax, dword [esp + 0x14]
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x4c6ad9
cmp byte [eax], 0x2d
jne 0x4c6829
mov bl, 1
push 0x6480ec
lea ecx, [esp + 0x18]
call fcn.00404770
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x2d]
push edx
mov ecx, edx
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x28]
mov eax, ecx
push eax
lea ecx, [esp + 0x90]
push ecx
push str._d_c_d_c_d_c_d
push edx
call fcn.005ddf88
add esp, 0x24
cmp eax, 7
jne 0x4c5d4e
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x50]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x54]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add dword [esp + 0x2c], eax
jmp 0x4c5d53
cmp dword [esp + 0x24], ebx
jl 0x4c5d4e
lea edx, [esp + 0x18]
push str.timestamp
push edx
call fcn.0041d5a0
add esp, 8
test al, al
je 0x4c5d4e
mov al, byte [esp + 0x38]
mov cl, byte [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov byte [esp + 0xed], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0xee], cl
mov dword [esp + 0xf4], edx
mov byte [esp + 0xfc], 1
xor bl, bl
cmp dword [eax - 0xc], 0
jl 0x4c6ad9
cmp byte [eax], 0x2d
jne 0x4c692a
mov bl, 1
push 0x6480ec
lea ecx, [esp + 0x18]
call fcn.00404770
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x2f]
push edx
mov ecx, edx
lea eax, [esp + 0x74]
push eax
push ecx
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x28]
mov eax, ecx
push eax
lea ecx, [esp + 0x74]
push ecx
push str._d_c_d_c_d_c_d
push edx
call fcn.005ddf88
add esp, 0x24
cmp eax, 7
jne 0x4c5d4e
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x6c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x74]
mov esi, dword [esp + 0x2c]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add eax, esi
cdq
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xe0], edx
cmp dword [eax - 0xc], 0
jl 0x4c5d4e
push str.filepos:
push eax
call fcn.005d9339
add esp, 8
test eax, eax
je 0x4c5d4e
sub eax, dword [esp + 0x14]
js 0x4c5d4e
add eax, 8
push eax
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x1c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0xd
call fcn.00403020
lea ecx, [esp + 0x7c]
mov byte [esp + 0x13c], 6
call fcn.00401a50
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd4]
push eax
push str._I64x
push ecx
call fcn.005ddf88
add esp, 0xc
cmp eax, 1
jne 0x4c5d4e
test esi, esi
jge 0x4c6ab3
mov eax, dword [esp + 0x24]
lea ecx, [eax + 0xc]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebp + edx*4]
test ecx, ecx
jbe 0x4c6ab7
add ecx, 0xffffffff
push ecx
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ebp + ecx*4 + 0x14c]
call fcn.004c3450
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0xe0]
cmp edx, eax
jg 0x4c6ab3
mov edx, dword [esp + 0xdc]
jl 0x4c6a9b
cmp edx, ecx
jae 0x4c6ab3
mov edi, ecx
sub edi, edx
add esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x24]
lea edx, [eax*8]
lea ecx, [esp + 0xd4]
sub edx, eax
push ecx
lea ecx, [ebp + edx*4 + 0x14c]
call fcn.004c4100
jmp 0x4c5d53
push 0x80070057
call fcn.00401470
int3