Function at 0x42cd80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47288d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d100c]
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, ecx
mov dword [ebp - 0x64], eax
cmp dword [eax + 0x460], 8
lea esi, [eax + 0x44c]
mov edx, esi
jb 0x42cdc3
mov edx, dword [esi]
push str.TwitchStudio.exe
lea ecx, [ebp - 0x58]
call fcn.004185a0
push ecx
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00429950
add esp, 8
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x42cdf1
mov esi, dword [esi]
push str.TwitchStudioAgent.exe
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004185a0
add esp, 4
mov byte [ebp - 4], 2
lea esi, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x59], 0
cmovae esi, dword [ebp - 0x58]
mov byte [ebp - 0x5a], 0
mov byte [ebp - 0x5b], 0
call fcn.00419130
cmp dword [eax + 0x14], 8
jb 0x42ce31
mov eax, dword [eax]
push esi
push eax
call fcn.0045466a
mov edx, dword [ebp - 0x74]
add esp, 8
test eax, eax
sete byte [ebp - 0x5d]
cmp edx, 8
jb 0x42ce7e
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ce74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d1a1
push edx
push ecx
call fcn.00451449
add esp, 8
mov byte [ebp - 0x5c], 0
call fcn.00418790
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
movsd qword [ebp - 0x70], xmm0
call fcn.00418790
subsd xmm0, qword [ebp - 0x70]
comisd xmm0, xmmword [0x4ca138]
setae byte [ebp - 0x5e]
call fcn.00418790
subsd xmm0, qword [ebp - 0x70]
push 0
push 0
push 3
push 0
comisd xmm0, xmmword [0x4ca140]
push 0
lea eax, [ebp - 0x40]
push 0x40000000
setae bh
xor bl, bl
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42cf36
call edi
cmp eax, 2
je 0x42cf39
cmp eax, 3
je 0x42cf39
cmp eax, 0x20
je 0x42cf01
cmp eax, 5
je 0x42cf39
cmp byte [ebp - 0x59], 0
jne 0x42cf20
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
mov ecx, 0x4b
mov byte [ebp - 0x59], 1
cmovae edx, dword [ebp - 0x40]
call fcn.00441530
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov dl, bh
cmovae ecx, dword [ebp - 0x40]
call fcn.0041df20
mov bl, 1
jmp 0x42cf39
push eax
call esi
cmp byte [ebp - 0x5d], 0
jne 0x42cfb3
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42cfb0
call edi
cmp eax, 2
je 0x42cfb3
cmp eax, 3
je 0x42cfb3
cmp eax, 0x20
je 0x42cf7b
cmp eax, 5
je 0x42cfb3
cmp byte [ebp - 0x5a], 0
jne 0x42cf9a
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov ecx, 0x4b
mov byte [ebp - 0x5a], 1
cmovae edx, dword [ebp - 0x58]
call fcn.00441530
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov dl, bh
cmovae ecx, dword [ebp - 0x58]
call fcn.0041df20
mov bl, 1
jmp 0x42cfb3
push eax
call esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42d028
call edi
cmp eax, 2
je 0x42d02b
cmp eax, 3
je 0x42d02b
cmp eax, 0x20
je 0x42cfef
cmp eax, 5
je 0x42d02b
cmp byte [ebp - 0x5b], 0
jne 0x42d00e
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, 0x4b
mov byte [ebp - 0x5b], 1
cmovae edx, dword [ebp - 0x28]
call fcn.00441530
cmp byte [ebp - 0x5e], 0
je 0x42d033
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dl, bh
cmovae ecx, dword [ebp - 0x28]
call fcn.0041df20
jmp 0x42d033
push eax
call esi
test bl, bl
je 0x42d0b3
cmp byte [ebp - 0x5c], 0
jne 0x42d070
mov eax, dword [ebp - 0x64]
mov edi, dword [eax + 0x484]
test edi, edi
je 0x42d066
mov esi, dword [edi]
mov ecx, 0x26
call fcn.00412f00
push eax
push 0
push 0
push 0
push 0
mov ecx, edi
call dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x5c], 1
call fcn.00418790
subsd xmm0, qword [ebp - 0x70]
comisd xmm0, xmmword [0x4ca148]
jae 0x42d091
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ce98
mov dword [0x4d2eac], 0x21
xor bl, bl
mov dword [0x4d1a44], 0x4c8910
mov dword [0x4d2eb0], 0x1cf
jmp 0x42d0b5
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42d0ef
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d0e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d1a6
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42d139
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d12f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d1a6
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x42d183
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d179
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d1a6
push edx
push ecx
call fcn.00451449
add esp, 8
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.00450db2
mov esp, ebp
pop ebp
ret
call fcn.00460976
call fcn.00460976
int3