Function at 0x4133c7
Capabilities:
Get file version info

Disassembly:
push ebx
push edi
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4133ce
call fcn.00431180
push dword [esp + 0x58]
call fcn.00418360
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.00418060
mov word [esp + 8], pe_nt_image_headers32
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
movsx eax, word [esp + 0x10]
push eax
call fcn.0042fc10
lea eax, [esp + 0x28]
push eax
call fcn.00430fe0
mov edx, 0x434028
lea ecx, [esp + 0x34]
call fcn.00418068
push dword [esp]
call fcn.00428330
push edx
push eax
pop ebx
pop edi
cmp edi, 0
jg 0x41345b
jl 0x413457
cmp ebx, 0
ja 0x41345b
xor eax, eax
jmp 0x413460
mov eax, 1
or eax, eax
je 0x413818
lea eax, [esp + 4]
push eax
push dword [esp + 4]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov word [esp + 0xc], ax
movsx ebx, word [esp + 0xc]
and ebx, ebx
jle 0x413818
movsx eax, word [esp + 0xc]
push eax
call fcn.00430270
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x413818
push dword [esp + 0x1c]
movsx eax, word [esp + 0x10]
push eax
push 0
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x41380f
mov edx, str.VarFileInfoTranslation
lea ecx, [esp + 0x20]
call fcn.00418068
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
call sub.VERSION.dll_VerQueryValueW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x4135b9
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
mov eax, 0x43441e
push eax
push 4
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
mov eax, dword [esp + 0x2c]
call fcn.00418320
cdq
push edx
push eax
call fcn.0042fa20
call fcn.00418342
add dword [esp], edx
call fcn.0042faa0
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
mov eax, 0x43441e
push eax
push 4
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
mov ebx, dword [esp + 0x30]
add ebx, 2
mov eax, ebx
call fcn.00418320
cdq
push edx
push eax
call fcn.0042fa20
call fcn.00418342
add dword [esp], edx
call fcn.0042faa0
pop eax
lea eax, [esp + 0x3c]
push eax
call fcn.00430fe0
movsx eax, word [esp + 8]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
call fcn.00418320
push eax
call sub.KERNEL32.dll_VerLanguageNameW
mov dword [esp + 0x2c], 1
mov byte [esp + 0x28], 1
jmp 0x4135c8
mov eax, 0xc
cmp al, byte [esp + 0x28]
jl 0x413742
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x41372e
push edx
call fcn.00430fa0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00405072
lea eax, [esp + 0x34]
push eax
call fcn.00430fe0
push edx
call fcn.00430fa0
pop edx
push eax
mov edx, 0x435504
push edx
call fcn.00431070
mov edx, dword [esp + 0x3c]
push edx
call fcn.00431070
mov edx, 0x434564
push edx
call fcn.00431070
mov edx, dword [esp + 0x34]
push edx
call fcn.00431070
lea eax, [esp + 0x24]
push eax
call fcn.00430fe0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
call sub.VERSION.dll_VerQueryValueW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x41372e
push dword [esp + 0x34]
mov edx, 0x434028
pop ecx
call fcn.00418380
jne 0x41369c
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
mov edx, 0x434256
push edx
call fcn.00431070
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
cmp dword [esp + 0x54], 0
je 0x4136f4
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
mov edx, dword [esp + 0x34]
push edx
call fcn.00431070
mov edx, 0x436446
push edx
call fcn.00431070
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00430310
pop eax
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
jmp 0x41372e
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00430fa0
pop edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00430310
pop eax
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
mov ebx, dword [esp + 0x2c]
shl ebx, 1
mov dword [esp + 0x2c], ebx
inc byte [esp + 0x28]
jno 0x4135c8
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x41380f
push dword [esp + 0x34]
mov edx, 0x434028
pop ecx
call fcn.00418380
jne 0x41378a
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
mov edx, 0x434256
push edx
call fcn.00431070
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
cmp dword [esp + 0x54], 0
je 0x4137e9
push edx
call fcn.00430fa0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00405072
lea eax, [esp + 0x34]
push eax
call fcn.00430fe0
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
mov edx, dword [esp + 0x34]
push edx
call fcn.00431070
mov edx, 0x436446
push edx
call fcn.00431070
mov edx, dword [esp + 0x28]
push edx
call fcn.00431070
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
jmp 0x41380f
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
mov edx, dword [esp + 0x28]
push edx
call fcn.00431070
lea eax, [esp + 0x38]
push eax
call fcn.00430fe0
push dword [esp + 0x1c]
call fcn.004301c0
mov edx, dword [esp + 0x34]
push edx
call fcn.00430fa0
pop edx
push eax
push edx
call fcn.00431070
pop eax
push eax
call fcn.00418330
pop edx
add eax, edx
jmp 0x413840
push dword [esp + 0x30]
call fcn.00431240
push dword [esp]
call fcn.00431240
push dword [esp + 0x38]
call fcn.00431240
push dword [esp + 0x34]
call fcn.00431240
push dword [esp + 0x24]
call fcn.00431240
push dword [esp + 0x20]
call fcn.00431240
add esp, 0x40
pop edi
pop ebx
ret 0xc