Function at 0x10008030
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x1004280b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [0x10055424]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x108]
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x108], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x10008282
push ebp
call fcn.1003ba7d
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x100080b3
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call fcn.1003bd1e
xor eax, eax
jmp 0x1000829b
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
xor ebx, ebx
cmp eax, ebx
jne 0x100080fe
push esi
call fcn.1003baa6
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call fcn.1003bd1e
xor eax, eax
jmp 0x1000829b
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, 0xfffffffc
jbe 0x100081bb
mov eax, dword [esp + 0x2c]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + ebx*4 + 2]
mov dx, word [eax + ebx*4]
push ecx
push edx
lea eax, [esp + 0x38]
push str.StringFileInfo_04x_04xOriginalFileName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push ecx
push edx
xor edi, edi
push eax
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
call sub.VERSION.dll_VerQueryValueA
mov ebp, eax
cmp ebp, edi
je 0x100081c3
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.1003bea7
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
shr eax, 2
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
cmp ebx, eax
jb 0x10008128
test ebp, ebp
jne 0x10008279
mov eax, dword [esp + 0x1c]
cmp eax, 0x24
jbe 0x10008279
cmp eax, 0x2000
jae 0x10008279
shr eax, 1
sub eax, 0x12
mov ecx, 0x19
mov dword [esp + 0x1c], eax
mov eax, 0
lea edi, [esp + 0x30]
mov ebx, eax
rep stosd dword es:[edi], eax
je 0x10008267
mov ebp, esi
mov ecx, 8
mov esi, ebp
lea edi, [esp + 0x30]
push str.OriginalFileName
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.1003926d
add esp, 8
test eax, eax
je 0x1000822b
mov eax, dword [esp + 0x1c]
inc ebx
add ebp, 2
cmp ebx, eax
jb 0x100081fa
jmp 0x10008263
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea eax, [edx + ebx*2 + 0x22]
push eax
call fcn.1003bece
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x100674d4
push ecx
call fcn.10020ce8
add esp, 8
push esi
call fcn.1003baa6
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call fcn.1003bd1e
mov eax, 1
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret