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

Disassembly:
push 0xffffffffffffffff
push 0x4382f9
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x44b538]
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 0x43b903
lea ecx, [esp + 0x14]
mov dword [esp + 0x23c], esi
call fcn.004048f0
mov byte [esp + 0x238], 1
call fcn.0041557a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404a32
push 0x80004005
call fcn.00401090
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.0041557a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404a64
push 0x80004005
call fcn.00401090
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_GetWindowsDirectoryA]
mov edx, dword [esp + 0x244]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404b54
mov eax, dword [esp + 0x20]
push edi
push ebp
push eax
lea ecx, [esp + 0x38]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404b4d
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0x43bef4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404b54
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 str._d._d._d._d
push ecx
call fcn.00402eb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00402350
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 0x404b85
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402350
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 0x404b91
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 0x404bb9
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 0x404be1
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 0x404c0b
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.00425d1a
add esp, 0x22c
ret 8