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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96c6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x63606c]
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.0058c9e0
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 0x4301d7
xor ecx, ecx
jmp 0x4301ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4301e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00423600
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 0x43038b
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 0x43038b
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 0x4302c0
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.00423760
lea ecx, [ebp - 0x230]
call fcn.00423760
jmp 0x430405
lea eax, [edi + 1]
push eax
call fcn.00573b64
mov esi, eax
add esp, 4
mov dword [ebp - 0x258], esi
test esi, esi
je 0x430284
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 0x430314
push esi
call fcn.00573b6d
add esp, 4
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00423110
jmp 0x4302a5
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x61e960
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4302fb
mov eax, dword [ebp - 0x254]
push dword [ebp - 0x258]
mov edi, dword [eax + 8]
movzx esi, word [eax + 0xe]
call fcn.00573b6d
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 0x61e964
push eax
call fcn.00435b60
add esp, 0x14
lea ecx, [ebp - 0x248]
push eax
call fcn.0042db90
lea ecx, [ebp - 0x274]
call fcn.00423760
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 0x4303ca
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004237a0
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 0x430405
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004237a0
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.00573b53
mov esp, ebp
pop ebp
ret