Function at 0x1001d840
Capabilities:
Get file version info

Disassembly:
sub esp, 0x43c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [esp + 0x448]
push ebx
push ebp
mov ebp, dword [esp + 0x448]
push esi
mov esi, dword [esp + 0x450]
push edi
xor ebx, ebx
push 0x206
mov edi, edx
lea edx, [esp + 0x246]
push ebx
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24c], bx
call fcn.1003d360
push 0x206
lea eax, [esp + 0x4a]
push ebx
push eax
call fcn.1003d360
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 0x18
mov dword [ebp], ebx
lea eax, [esp + 0x28]
mov dword [esi], ebx
push eax
mov dword [ecx], ebx
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x40], bx
mov dword [edx], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1001d9d1
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x28]
push eax
push esi
push ecx
push edi
mov dword [esp + 0x30], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov edi, dword [esp + 0x20]
je 0x1001d9ca
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001d9ca
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1001d9ca
cmp dword [esp + 0x1c], ebx
je 0x1001d9ca
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductVersion
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.10003980
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x248]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x1001d9ca
lea eax, [esp + 0x38]
mov ecx, eax
mov dword [esp + 0x10], 1
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1001d9c0
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x1001d9c0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1001d9a0
jmp 0x1001d9c4
cmp edx, ebx
jne 0x1001d9c7
sub eax, 2
mov word [eax], bx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [esp + 0x38], bx
je 0x1001dad2
lea edx, [esp + 0x38]
push 0x10058784
push edx
call fcn.1003c14c
add esp, 8
test eax, eax
lea eax, [esp + 0x38]
push eax
je 0x1001da56
call fcn.1003c570
lea ecx, [esp + 0x3c]
push 0x10058784
push ecx
mov dword [ebp], eax
call fcn.1003c14c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1001da29
add esi, 2
push esi
call fcn.1003c570
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [edx], eax
push 0x10058784
push esi
call fcn.1003c14c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1001da4f
add esi, 2
push esi
call fcn.1003c570
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
push 0x10058784
jmp 0x1001dab3
call fcn.1003c570
lea ecx, [esp + 0x3c]
push 0x10058958
push ecx
mov dword [ebp], eax
call fcn.1003c14c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1001da88
add esi, 2
push esi
call fcn.1003c570
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [edx], eax
push 0x10058958
push esi
call fcn.1003c14c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1001daae
add esi, 2
push esi
call fcn.1003c570
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
push 0x10058958
push esi
call fcn.1003c14c
add esp, 8
cmp eax, ebx
je 0x1001dad2
add eax, 2
push eax
call fcn.1003c570
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
add esp, 4
mov ecx, dword [esp + 0x448]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x43c
ret 0xc