Function at 0x10004070
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011138
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], 0
push 0x10013c97
lea ecx, [ebp - 0x38]
call fcn.10002570
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x12c]
mov al, byte [edx]
mov byte [ebp - 0x131], al
add dword [ebp - 0x12c], 1
cmp byte [ebp - 0x131], 0
jne 0x100040d1
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x138], ecx
jne 0x10004135
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.100025b0
mov eax, dword [ebp - 0x128]
or eax, 1
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100025f0
mov eax, dword [ebp + 8]
jmp 0x10004325
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000417d
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.100025b0
mov ecx, dword [ebp - 0x128]
or ecx, 1
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100025f0
mov eax, dword [ebp + 8]
jmp 0x10004325
mov edx, dword [ebp - 0x10]
push edx
call fcn.100068d2
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100041f9
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.10006f4a
add esp, 4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.100025b0
mov ecx, dword [ebp - 0x128]
or ecx, 1
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100025f0
mov eax, dword [ebp + 8]
jmp 0x10004325
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x40]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x10004264
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.10006f4a
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100025b0
mov edx, dword [ebp - 0x128]
or edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100025f0
mov eax, dword [ebp + 8]
jmp 0x10004325
mov dword [ebp - 0x44], 0
jmp 0x10004276
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x3c]
shr ecx, 2
cmp dword [ebp - 0x44], ecx
jae 0x100042e0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_04x_04xFileVersion
lea edx, [ebp - 0x114]
push edx
call fcn.100070ae
add esp, 0x10
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.10004910
jmp 0x1000426d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.10006f55
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100025b0
mov edx, dword [ebp - 0x128]
or edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100025f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret