Function at 0x100298b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x28
lea eax, [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x10029ba4
push ebp
call dword [sym.imp.kernel32.dll_GetLastError]
push 0xc
mov ebp, eax
call fcn.10033b30
mov esi, eax
add esp, 4
test esi, esi
je 0x10029904
push str.GetFileVersion_for__
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10033b30
mov dword [esi], eax
jmp 0x10029906
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10029bfa
push edi
lea ecx, [esp + 0x18]
call fcn.100032a0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0x14]
or edi, 0xffffffff
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x10029976
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10029976
mov eax, dword [esi]
test eax, eax
je 0x10029954
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1002996b
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
push 0xc
call fcn.10033b30
mov esi, eax
add esp, 4
test esi, esi
je 0x100299a2
push str.__FAILED
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10033b30
mov dword [esi], eax
jmp 0x100299a4
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
je 0x10029bfa
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x100299f9
mov eax, dword [esi]
test eax, eax
je 0x100299d7
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100299ee
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
lea ecx, [esp + 0x14]
cmp ebp, 2
jne 0x10029a0c
push str.__file_does_not_exist_
jmp 0x10029af0
push str.__error_code
call fcn.100060b0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10029a67
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10029a67
mov eax, dword [esi]
test eax, eax
je 0x10029a45
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10029a5c
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
mov eax, 0x13
mov dword [esp + 0x30], ebp
mov word [esp + 0x28], ax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
push eax
call fcn.10015c90
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10029adc
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10029ad4
test esi, esi
je 0x10029ad4
mov eax, dword [esi]
test eax, eax
je 0x10029ab2
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10029ac9
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
mov dword [esp + 0x14], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10041ee0
lea ecx, [esp + 0x18]
call fcn.100060b0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10029b46
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10029b46
mov eax, dword [esi]
test eax, eax
je 0x10029b24
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10029b3b
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10029b52
mov eax, dword [esi]
jmp 0x10029b54
xor eax, eax
push eax
call fcn.10003ca0
add esp, 4
test esi, esi
je 0x10029b9a
lock xadd dword [esi + 8], edi
dec edi
jne 0x10029b9a
mov eax, dword [esi]
test eax, eax
je 0x10029b78
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10029b8f
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push esi
call fcn.10033b30
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10029bee
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push 0x1003e9cc
push ebx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
movzx eax, word [edx + 0xa]
mov dword [ecx], eax
movzx eax, word [edx + 8]
mov dword [ecx + 4], eax
movzx eax, word [edx + 0xe]
mov dword [ecx + 8], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
push 0x8007000e
call fcn.10033b30
int3