Function at 0x877d58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x877d60
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.008738b8
lea edi, [ebp - 0xc]
xor eax, eax
push ebp
push 0x878175
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x878141
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00873414
mov eax, dword [ebp - 8]
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 8
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0xc
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x10
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x1c
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x20
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x24
call fcn.00873414
mov eax, dword [ebp - 8]
add eax, 0x28
call fcn.00873414
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp - 4]
call fcn.008738c8
mov esi, eax
mov eax, esi
call fcn.008777e0
test al, al
jne 0x877e36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x878152
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [edi], eax
cmp dword [edi], 0
jne 0x877e59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x878152
mov eax, dword [edi]
call fcn.00872514
mov ebx, eax
push ebx
mov eax, dword [edi]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x877e85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x878152
push edi
lea eax, [ebp - 0x10]
push eax
push 0x878184
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877edd
push 0x8781a8
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov dl, 4
call fcn.00877ba8
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00874fe4
movzx eax, ax
lea ecx, [ebp - 0x20]
mov dl, 4
call fcn.00877ba8
push dword [ebp - 0x20]
push 0x8781c4
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.00873788
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x8781d0
call fcn.00873714
mov eax, dword [ebp - 0x24]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877f15
mov eax, dword [ebp - 8]
add eax, 4
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x8781e4
call fcn.00873714
mov eax, dword [ebp - 0x28]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877f4d
mov eax, dword [ebp - 8]
add eax, 8
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x2c]
mov ecx, 0x8781fc
call fcn.00873714
mov eax, dword [ebp - 0x2c]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877f85
mov eax, dword [ebp - 8]
add eax, 0xc
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x30]
mov ecx, 0x878210
call fcn.00873714
mov eax, dword [ebp - 0x30]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877fbd
mov eax, dword [ebp - 8]
add eax, 0x10
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x878228
call fcn.00873714
mov eax, dword [ebp - 0x34]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x877ff5
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x38]
mov ecx, 0x878240
call fcn.00873714
mov eax, dword [ebp - 0x38]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x87802f
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, dword [ebp - 0x14]
call fcn.0087360c
jmp 0x87803a
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.00873414
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x3c]
mov ecx, 0x878258
call fcn.00873714
mov eax, dword [ebp - 0x3c]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x878072
mov eax, dword [ebp - 8]
add eax, 0x24
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x40]
mov ecx, 0x878274
call fcn.00873714
mov eax, dword [ebp - 0x40]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x8780aa
mov eax, dword [ebp - 8]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x44]
mov ecx, 0x878288
call fcn.00873714
mov eax, dword [ebp - 0x44]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x8780e2
mov eax, dword [ebp - 8]
add eax, 0x20
mov edx, dword [ebp - 0x14]
call fcn.0087360c
push edi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, 0x8782a0
call fcn.00873714
mov eax, dword [ebp - 0x48]
call fcn.008738c8
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x87811c
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x14]
call fcn.0087360c
jmp 0x878127
mov eax, dword [ebp - 8]
add eax, 0x28
call fcn.00873414
mov eax, dword [ebp - 8]
mov byte [eax + 0x2c], 1
mov edx, dword [edi]
mov eax, ebx
call fcn.00872534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x878152
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87817c
lea eax, [ebp - 0x48]
mov edx, 0xc
call fcn.00873438
lea eax, [ebp - 4]
call fcn.00873414
ret