Function at 0x407830
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x443d50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x458640]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
add ecx, 0x658
xor esi, esi
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
call fcn.00405ce0
push 0xc
push str.Explorer.exe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], esi
call fcn.004045e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
je 0x407ba3
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x1c], 1
jae 0x4078f7
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push str.StringFileInfo040904b0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x1c], 4
jne 0x407b91
call fcn.00411614
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40791c
push 0x80004005
call fcn.00401000
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 + 0x34], 1
call fcn.00411614
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40794b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push edx
lea eax, [esp + 0x1c]
push str._08x
push eax
mov byte [esp + 0x40], 2
call fcn.00404a50
add esp, 0xc
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401880
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.00401a50
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push str.0804
push esi
call fcn.0042ca95
add esp, 8
test eax, eax
sete al
test al, al
je 0x407a62
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079fd
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
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
push str.0404
push esi
call fcn.0042ca95
add esp, 8
test eax, eax
sete al
test al, al
lea ecx, [esp + 0x10]
je 0x407aac
call fcn.00401430
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, 2
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
push str.0C04
push ecx
call fcn.00401380
add esp, 8
test al, al
je 0x407af1
lea ecx, [esp + 0x10]
call fcn.00401430
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, 3
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
lea edx, [esp + 0x10]
push str.1004
push edx
call fcn.00401380
add esp, 8
test al, al
je 0x407b3a
lea ecx, [esp + 0x10]
call fcn.00401430
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
lea eax, [esp + 0x10]
push str.1404
push eax
call fcn.00401380
add esp, 8
test al, al
lea ecx, [esp + 0x10]
je 0x407b83
call fcn.00401430
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
mov eax, 5
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
call fcn.00401430
lea ecx, [esp + 0x18]
call fcn.00401430
test ebp, ebp
je 0x407ba3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret