Function at 0x10009740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x1003bcc8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.1001a377
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1001a377
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x1000978c
cmp dword [ebp - 4], 0
jne 0x10009795
mov dword [ebp - 0xc], 8
jmp 0x100097dd
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x288]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], edx
mov ecx, dword [ebp - 0x290]
or ecx, dword [ebp - 0x28c]
jne 0x100097dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x288]
cmp dword [edx], 0
je 0x100099fd
cmp dword [ebp - 8], 0
je 0x100099fd
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
and edx, 8
je 0x100098fc
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jbe 0x100098fc
mov edx, dword [ebp - 0x270]
push edx
call fcn.1001929c
add esp, 4
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x100098fc
mov eax, dword [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x274]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100098ed
mov ecx, dword [0x10035510]
mov dword [ebp - 0x284], ecx
lea edx, [ebp - 0x280]
push edx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100098c6
mov dword [ebp - 0x278], 0
jmp 0x100098ed
mov eax, dword [ebp - 0x278]
mov esi, dword [eax + 0xc]
xor edi, edi
mov ecx, dword [ebp - 0x278]
mov eax, dword [ecx + 8]
xor edx, edx
mov cl, 0x20
call fcn.1001b6c0
add esi, eax
adc edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov edx, dword [ebp - 0x27c]
push edx
call fcn.100191bf
add esp, 4
mov dword [ebp - 0x26c], str._unknown_
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x288]
call fcn.10009aa0
test eax, eax
je case.0x10009947.7
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x294], 9
ja case.0x10009947.7
mov edx, dword [ebp - 0x294]
jmp dword [edx*4 + 0x10009a38]
mov dword [ebp - 0x26c], str._nosymbols_
jmp case.0x10009947.7
mov dword [ebp - 0x26c], str.COFF
jmp case.0x10009947.7
mov dword [ebp - 0x26c], 0x10035534
jmp case.0x10009947.7
mov dword [ebp - 0x26c], 0x10035538
jmp case.0x10009947.7
mov dword [ebp - 0x26c], str._exported_
jmp case.0x10009947.7
mov dword [ebp - 0x26c], str._deferred_
jmp case.0x10009947.7
mov dword [ebp - 0x26c], 0x10035554
jmp case.0x10009947.7
mov dword [ebp - 0x26c], str.Virtual
jmp case.0x10009947.7
mov dword [ebp - 0x26c], 0x10035560
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x288]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
mov edx, dword [edx]
mov eax, dword [edx + 8]
call eax
cmp dword [ebp - 8], 0
je 0x10009a0f
mov ecx, dword [ebp - 8]
push ecx
call fcn.100191bf
add esp, 4
cmp dword [ebp - 4], 0
je 0x10009a21
mov edx, dword [ebp - 4]
push edx
call fcn.100191bf
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100184dc
mov esp, ebp
pop ebp
ret 0x18