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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619880
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6b1a94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0
call fcn.00403fe0
mov ecx, eax
test ecx, ecx
jne 0x47e6be
push 0x80004005
call fcn.00403d40
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x14], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x47e850
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e84d
push ecx
lea ecx, [ebp - 0x10]
call fcn.00470960
mov byte [ebp - 4], 1
push 0
push dword [edi]
mov dword [ebp - 0x20], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x47e758
mov ecx, dword [ebp - 0x14]
call fcn.00407830
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov dword [ebx], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47e741
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x47e871
push eax
call fcn.005c93d3
mov edi, eax
add esp, 4
test edi, edi
jne 0x47e7a8
mov ecx, dword [ebp - 0x14]
call fcn.00407830
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov dword [ebx], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47e741
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x47e871
mov eax, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
push 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47e7fd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x67d71c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x47e7fd
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.00403390
add esp, 0x18
push 1
push edi
call fcn.005c969f
mov ecx, dword [ebp - 0x10]
add esp, 8
lea ecx, [ecx - 0x10]
call fcn.00407830
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov dword [ebx], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47e741
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x47e871
mov eax, dword [ebp - 0x14]
mov ecx, eax
call fcn.00407830
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e87b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret