Function at 0x404400
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 3
je 0x404434
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404660
add esp, 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404451
xor eax, eax
jmp 0x4045ea
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413741
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413741
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x4044a7
cmp dword [ebp - 0x28], 0
jne 0x4044ae
xor eax, eax
jmp 0x4045ea
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4044e0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00413746
add esp, 4
xor eax, eax
jmp 0x4045ea
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4297c0
mov eax, dword [ebp - 0x2c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40450f
push 0x34
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 0xc
push edx
call fcn.004158c0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x4297c4
mov edx, dword [ebp - 0x2c]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x30], 0
jmp 0x404537
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 2
cmp dword [ebp - 0x30], ecx
jge 0x404595
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_04x_04x_s
push 0x32
mov eax, dword [ebp - 0x28]
push eax
call fcn.004047f0
add esp, 0x18
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x404593
jmp 0x404595
jmp 0x40452e
cmp dword [ebp - 0x24], 0
je 0x4045c3
push 0x190
call fcn.00413741
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
push eax
push 0xc8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00404770
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00413746
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00413746
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc