Function at 0x1003d740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb228
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x100f2384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1003dabe
push esi
call fcn.10066ff2
mov edi, eax
add esp, 4
test edi, edi
je 0x1003daa9
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003da8b
cmp dword [0x100f2178], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1003d858
push str.ntdll.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1003d848
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003d81c
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x1003d848
mov eax, dword [ebp - 0x18]
cmp eax, 6
jne 0x1003d839
cmp dword [ebp - 0x1c], 4
je 0x1003d83e
jmp 0x1003d848
cmp eax, 0xa
jb 0x1003d848
mov dword [0x100f6e14], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100f2178], 0
cmp dword [0x100f6e14], 0
je 0x1003d9d0
cmp dword [0x100f2174], 0
je 0x1003d929
push str.GetNativeSystemInfo
push 0x100c9120
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
test eax, eax
je 0x1003d91f
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x44]
push ecx
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
call eax
mov ax, word [ebp - 0x44]
cmp ax, 9
je 0x1003d915
cmp ax, 6
je 0x1003d915
cmp ax, 0xc
je 0x1003d915
push str.IsWow64Process2
push 0x100c9214
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test esi, esi
je 0x1003d90c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1003d90c
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp + 8], cx
sete al
mov dword [0x100f6e10], eax
jmp 0x1003d91f
xor eax, eax
mov dword [0x100f6e10], eax
jmp 0x1003d91f
mov dword [0x100f6e10], 1
mov dword [0x100f2174], 0
cmp dword [0x100f6e10], 0
jne 0x1003d9d0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test eax, eax
je 0x1003d9d2
test dword [ebp - 0x10], 0xfffffffc
jbe 0x1003d9d0
nop
lea ecx, [ebp + 8]
call fcn.10003c50
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp + 8]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.10018330
add esp, 0x10
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1003da43
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.10004a20
mov eax, dword [ebp - 0x10]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1003d960
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 0
push eax
push 0x100c346c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1003da8d
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call fcn.10018330
add esp, 0x18
mov esi, 1
push edi
call fcn.10066fed
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10006dc0
push 0x2e
push 0x2c
mov ecx, esi
call fcn.1003e850
push 0x20
mov ecx, esi
call fcn.1003e790
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov esi, 1
call fcn.10004a20
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x1003da8d
jmp 0x1003d9d2
xor esi, esi
push edi
call fcn.10066fed
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret