Function at 0x4273c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4344ad
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4476e4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x44762c]
cmp eax, dword [ecx + 4]
jg 0x42764c
cmp dword [0x446044], 0
jne 0x427613
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push fcn.004273c0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x427613
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
test eax, eax
je 0x427491
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4274b7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402220
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], 0
lea eax, [esi + 0xe]
mov dword [ebp - 0x21c], 7
push eax
mov dword [ebp - 0x250], 1
call fcn.0041ec30
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.0040c450
push 0xe
push str.wpsphoto.exe
lea ecx, [ebp - 0x230]
call fcn.0040c450
mov edx, dword [0x446048]
cmp edx, 8
jb 0x42758f
mov ecx, dword [0x446034]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427585
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427603
push edx
push ecx
call fcn.0042d5b4
add esp, 8
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x234]
mov dword [0x446034], eax
mov eax, dword [ebp - 0x22c]
mov dword [0x446038], eax
mov eax, dword [ebp - 0x228]
mov dword [0x44603c], eax
mov eax, dword [ebp - 0x224]
mov dword [0x446040], eax
mov eax, dword [ebp - 0x220]
mov dword [0x446044], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x446048], eax
cmp edx, 8
jb 0x427613
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427609
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x427609
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d5b4
add esp, 8
cmp dword [0x446048], 8
mov eax, 0x446034
cmovae eax, dword [0x446034]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d821
mov esp, ebp
pop ebp
ret
push 0x44762c
call fcn.0042d98d
add esp, 4
cmp dword [0x44762c], 0xffffffff
jne 0x427416
push 0x435070
call fcn.0042d80c
push 0x44762c
call fcn.0042d943
add esp, 8
jmp 0x427416