Function at 0x10075560
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xfffffffffffffffe
push 0x1016ded8
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x244], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov eax, dword [ebp + 0x254]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 0x25c]
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov byte [ebp + 0x140], 0
push 0x103
push esi
lea edx, [ebp + 0x141]
push edx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 4], esi
lea esi, [ebp]
mov ecx, edi
call fcn.10033b80
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x10075659
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x10075635
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1007560b
mov dword [eax], 0
cmp dword [0x10193e64], 0
je 0x10075624
push edi
push str._ESUPD__File_s__with_Pattern___s__not_found..
push 0
call fcn.10053700
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x100757fb
test ebx, ebx
je 0x1007564b
call esi
push eax
push edi
push str._ESUPD__MyFindFirstFileA___failed_for___s___GetLastError__:___d_
push ebx
call fcn.1010d6a8
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x100757fb
mov bl, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp], bl
jne 0x100757a9
cmp dword [ebp + 0x20], 0
jbe 0x1007574c
cmp dword [ebp + 0x1c], 0
jne 0x1007574c
push str.versions.dat
lea eax, [ebp + 0x2c]
push eax
call fcn.1011c280
add esp, 8
test eax, eax
je 0x100757a9
push str.versions.dat.gz
lea ecx, [ebp + 0x2c]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x100757a9
mov ecx, dword [ebp + 0x250]
lea edx, [ebp + 0x140]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100756c0
lea ecx, [ebp + 0x140]
call fcn.10049c40
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp + 0x140]
push edx
call edi
cmp dword [ebp + 0x258], 0
je 0x10075709
cmp dword [0x10193e64], 0
je 0x10075799
lea eax, [ebp + 0x140]
push eax
push str._ESUPD__Deleting_existing_versions.dat_file:___s_
jmp 0x1007578f
cmp dword [0x10193e64], 0
je 0x10075725
lea ecx, [ebp + 0x2c]
push ecx
push str._ESUPD__Found_versions.dat_file:___s_
push 0
call fcn.10053700
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10075732
mov dword [eax], 1
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x100757a9
lea ecx, [ebp + 0x140]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10075740
jmp 0x100757a9
mov ecx, dword [ebp + 0x250]
lea edx, [ebp + 0x140]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10075758
lea ecx, [ebp + 0x140]
call fcn.10049c40
lea edx, [ebp + 0x2c]
push edx
lea eax, [ebp + 0x140]
push eax
call edi
cmp dword [0x10193e64], 0
je 0x10075799
lea ecx, [ebp + 0x140]
push ecx
push str._ESUPD__Deleting_ZeroByte_Corrupted_file:___s_
push 0
call fcn.10053700
add esp, 0xc
mov eax, 2
lea ecx, [ebp + 0x140]
call fcn.1004b850
lea esi, [ebp]
mov ecx, dword [ebp - 0x1c]
call fcn.10033de0
test eax, eax
jne 0x10075661
lea esi, [eax + 1]
jmp 0x100757e1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100757f9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x248
mov esp, ebp
pop ebp
ret