Function at 0x46fe00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x28], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x14]
mov ecx, 0xd
lea eax, [ebp - 0x5c]
mov edx, dword [0x401094]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4700ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xc
lea eax, [ebp - 0x5c]
mov edx, 0x4700e8
call fcn.00404280
lea eax, [ebp - 0x58]
mov edx, 0x4700fc
call fcn.00404280
lea eax, [ebp - 0x54]
mov edx, 0x470114
call fcn.00404280
lea eax, [ebp - 0x50]
mov edx, 0x470128
call fcn.00404280
lea eax, [ebp - 0x4c]
mov edx, 0x47013c
call fcn.00404280
lea eax, [ebp - 0x48]
mov edx, 0x470154
call fcn.00404280
lea eax, [ebp - 0x44]
mov edx, 0x47016c
call fcn.00404280
lea eax, [ebp - 0x40]
mov edx, 0x470184
call fcn.00404280
lea eax, [ebp - 0x3c]
mov edx, 0x47019c
call fcn.00404280
lea eax, [ebp - 0x38]
mov edx, 0x4701b4
call fcn.00404280
lea eax, [ebp - 0x34]
mov edx, 0x4701c8
call fcn.00404280
lea eax, [ebp - 0x30]
mov edx, 0x4701e4
call fcn.00404280
xor ebx, ebx
cmp esi, ebx
jle 0x46ff0f
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + ebx*4]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
call fcn.00402d48
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp esi, ebx
jg 0x46fef2
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, edi
call fcn.00402d48
mov eax, dword [ebp - 8]
push eax
push edi
push 0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x470095
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4701f4
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x470095
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
shr eax, 2
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x470085
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47007f
lea eax, [ebp - 0x15d]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402d48
push 0x470218
lea ecx, [ebp - 0x164]
movzx eax, word [esi]
mov edx, 4
call fcn.004088c4
push dword [ebp - 0x164]
lea ecx, [ebp - 0x168]
movzx eax, word [esi + 2]
mov edx, 4
call fcn.004088c4
push dword [ebp - 0x168]
push 0x470234
push dword [ebp + ebx*4 - 0x5c]
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404568
lea eax, [ebp - 0x15d]
mov edx, dword [ebp - 0x28]
call fcn.00408f88
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x15d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x470075
cmp dword [ebp - 0x24], 0
je 0x470075
cmp dword [ebp - 0x1c], 0
jbe 0x470075
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + ebx*4]
cmp dword [ebp - 0x1c], 0
jbe 0x470075
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + ebx*4]
add ecx, edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.0046fdb8
add edi, eax
lea eax, [ebp - 0x28]
mov edx, 0x470240
call fcn.00404280
mov eax, dword [ebp - 0x28]
call fcn.004046a8
mov edx, eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + ebx*4]
add eax, edi
mov ecx, 2
call fcn.00407074
add edi, 2
mov eax, dword [ebp + 0xc]
mov dword [eax + ebx*4], edi
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x46ff7c
add esi, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jae 0x470095
test esi, esi
jne 0x46ff71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4700d5
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.0040420c
lea eax, [ebp - 0x5c]
mov ecx, 0xd
mov edx, dword [0x401094]
call fcn.00404eb0
lea eax, [ebp - 0x28]
call fcn.004041e8
ret