Function at 0x403510
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43a5d9
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x240]
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
push 0x43ea84
lea ecx, [esp + 0x14]
mov dword [esp + 0x23c], esi
call fcn.00403350
mov byte [esp + 0x238], 1
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x403592
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x238], 2
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4035c4
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
push 0x200
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x240], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esp + 0x244]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4036b4
mov eax, dword [esp + 0x20]
push edi
push ebp
push eax
lea ecx, [esp + 0x38]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4036ad
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0x43ec00
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4036b4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x20]
push 0x43ebe8
push ecx
call fcn.00403170
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00402590
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
add esp, 0x1c
mov byte [esp + 0x238], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4036e5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402590
mov edi, dword [esp + 0x18]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x238], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x238], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x238], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403741
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x244]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x238], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40376b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004274dc
add esp, 0x22c
ret 8