Function at 0x426340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580205
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x5f3edc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x218], bl
mov ecx, 0x40
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], esp
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42639a
mov eax, 0x10
test al, 0x10
je 0x4263cf
lea edx, [ebp - 0x218]
xor edi, edi
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4263b0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll__mbslwr]
add esp, 4
jmp 0x42658c
xor eax, eax
mov byte [ebp - 0x418], bl
mov ecx, 0x3f
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x114], bl
mov ecx, 0x3f
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x318], bl
mov ecx, 0x3f
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x114]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push esi
mov byte [ebp - 0x41c], bl
mov word [ebp - 0x41b], bx
call dword [sym.imp.MSVCR71.dll__splitpath]
mov esi, dword [sym.imp.MSVCR71.dll__mbslwr]
lea edx, [ebp - 0x41c]
push edx
call esi
lea eax, [ebp - 0x418]
push eax
call esi
lea ecx, [ebp - 0x114]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
call esi
mov esi, dword [sym.imp.MSVCR71.dll__mbscmp]
lea eax, [ebp - 0x114]
push str.video_ts
push eax
call esi
add esp, 0x2c
test eax, eax
jne 0x4264c8
lea ecx, [ebp - 0x318]
push str..ifo
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4264c8
push ebx
push ebx
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x218]
push ecx
xor edi, edi
call dword [sym.imp.MSVCR71.dll__makepath]
add esp, 0x14
jmp 0x42658c
lea edx, [ebp - 0x318]
push str..ifo
push edx
call esi
add esp, 8
test eax, eax
jne 0x426752
cmp byte [ebp - 0x114], 0x76
jne 0x426752
cmp byte [ebp - 0x113], 0x74
jne 0x426752
cmp byte [ebp - 0x112], 0x73
jne 0x426752
mov al, byte [ebp - 0x111]
mov cl, 0x5f
cmp al, cl
jne 0x426752
mov al, byte [ebp - 0x110]
cmp al, 0x30
jl 0x426752
cmp al, 0x39
jg 0x426752
mov al, byte [ebp - 0x10f]
cmp al, 0x30
jl 0x426752
cmp al, 0x39
jg 0x426752
cmp byte [ebp - 0x10e], cl
jne 0x426752
cmp byte [ebp - 0x10d], 0x30
jne 0x426752
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
push ebx
push ebx
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x41c]
mov edi, eax
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll__makepath]
add esp, 0x18
push 0x48
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [ebp - 0x41c], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x4265b2
mov ecx, eax
call fcn.00445620
mov esi, eax
jmp 0x4265b4
xor esi, esi
mov edx, dword [esi]
push edi
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 2
call dword [edx + 0x14]
cmp edi, ebx
mov dword [ebp - 4], 5
jne 0x4265e6
push esi
call fcn.00425560
add esp, 4
jmp 0x4265f0
push edi
push esi
call fcn.004250a0
add esp, 8
or edi, 0xffffffff
cmp eax, ebx
mov dword [ebp - 4], edi
je 0x426616
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x28], esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00558076
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004452c0
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [ebp - 0x41c], eax
cmp eax, ebx
mov dword [ebp - 4], 8
je 0x426646
push 0x8261
mov ecx, eax
call fcn.0049bd50
jmp 0x426648
xor eax, eax
push 0x5d1fa4
lea ecx, [ebp - 0x430]
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x430], eax
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x41c]
call fcn.004452c0
mov edx, dword [ebp - 0x420]
push 0x5d1fa4
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x42c], edx
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x41c]
call fcn.004452c0
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [ebp - 0x420], eax
xor ebx, ebx
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x4266bd
push 0x8267
mov ecx, eax
call fcn.0049bd50
jmp 0x4266bf
xor eax, eax
push 0x5d1fa4
lea ecx, [ebp - 0x434]
push ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x434], eax
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x41c]
call fcn.004452c0
mov edx, dword [ebp - 0x420]
push 0x5d1fa4
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x428], edx
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x41c]
call fcn.004452c0
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [ebp - 0x420], eax
xor ebx, ebx
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x426735
push 0x8266
mov ecx, eax
call fcn.0049bd50
jmp 0x426737
xor eax, eax
push 0x5d1fa4
lea ecx, [ebp - 0x424]
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x424], eax
call sub.MSVCR71.dll__CxxThrowException
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [ebp - 0x420], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x426777
push 0x8265
mov ecx, eax
call fcn.0049bd50
jmp 0x426779
xor eax, eax
push 0x5d1fa4
lea edx, [ebp - 0x438]
push edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x438], eax
call sub.MSVCR71.dll__CxxThrowException
int3