Function at 0x42e910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535f5c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x594624]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
test edi, edi
je 0x42ebce
test esi, esi
je 0x42ebce
xor eax, eax
cmp ax, word [esi]
je 0x42ebce
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004daa30
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
cmp dword [ebp + 0x18], 0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
je 0x42e9b8
push 0x20119
jmp 0x42e9bd
push 0x20219
push esi
push edi
call fcn.0042fbb0
test eax, eax
jne 0x42ebb7
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0042ffe0
test eax, eax
jne 0x42ebb7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00415b40
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00431880
lea ecx, [ebp - 0x21c]
call fcn.00431980
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x42ea42
lea ecx, [ebp - 0x21c]
xor esi, esi
call fcn.0040d6a0
jmp 0x42ebb9
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041e760
mov ecx, 0x54d510
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42ea86
test dx, dx
je 0x42ea82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42ea86
add eax, 4
add ecx, 4
test dx, dx
jne 0x42ea60
xor esi, esi
jmp 0x42ea8b
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.0040d6a0
test esi, esi
jne 0x42ead6
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041fa30
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004167b0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0040d6a0
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041fa30
mov ecx, 0x54d510
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42eb17
test dx, dx
je 0x42eb13
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42eb17
add eax, 4
add ecx, 4
test dx, dx
jne 0x42eaf1
xor esi, esi
jmp 0x42eb1c
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.0040d6a0
test esi, esi
jne 0x42eb67
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041e760
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.004167b0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0040d6a0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x42eb9c
cmp word [eax], 0
je 0x42eb9c
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.0042cdd0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00430100
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.0040d6a0
jmp 0x42ebb9
xor esi, esi
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x42ebca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42ebd0
xor eax, eax
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.00493dce
mov esp, ebp
pop ebp
ret