Function at 0x42f380
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8476
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x63506c]
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 ebx, ecx
mov dword [ebp - 0x258], ebx
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0058b9c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x218], 0
jne 0x42f417
xor ecx, ecx
jmp 0x42f42f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f420
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00423580
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], eax
jbe 0x42f5cb
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f5cb
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], 0
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x42f500
mov dword [ebx + 0x14], 7
xor eax, eax
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x248]
push eax
call fcn.004230a0
lea ecx, [ebp - 0x248]
call fcn.004236e0
lea ecx, [ebp - 0x230]
call fcn.004236e0
jmp 0x42f645
lea eax, [edi + 1]
push eax
call fcn.00572b34
mov esi, eax
add esp, 4
mov dword [ebp - 0x258], esi
test esi, esi
je 0x42f4c4
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x42f554
push esi
call fcn.00572b3d
add esp, 4
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00423110
jmp 0x42f4e5
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x61d794
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42f53b
mov eax, dword [ebp - 0x254]
push dword [ebp - 0x258]
mov edi, dword [eax + 8]
movzx esi, word [eax + 0xe]
call fcn.00572b3d
mov eax, 0x51eb851f
add esp, 4
mul esi
movzx eax, di
shr edx, 5
push edx
push eax
shr edi, 0x10
lea eax, [ebp - 0x274]
push edi
push 0x61d798
push eax
call fcn.00434da0
add esp, 0x14
lea ecx, [ebp - 0x248]
push eax
call fcn.0042cdc0
lea ecx, [ebp - 0x274]
call fcn.004236e0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x248]
push eax
call fcn.004230a0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x42f60a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x42f645
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00423720
mov eax, ebx
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.00572b23
mov esp, ebp
pop ebp
ret