Function at 0x4703d0
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 0x47069e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xc
lea eax, [ebp - 0x5c]
mov edx, 0x4706b8
call fcn.00404280
lea eax, [ebp - 0x58]
mov edx, 0x4706cc
call fcn.00404280
lea eax, [ebp - 0x54]
mov edx, 0x4706e4
call fcn.00404280
lea eax, [ebp - 0x50]
mov edx, 0x4706f8
call fcn.00404280
lea eax, [ebp - 0x4c]
mov edx, 0x47070c
call fcn.00404280
lea eax, [ebp - 0x48]
mov edx, 0x470724
call fcn.00404280
lea eax, [ebp - 0x44]
mov edx, 0x47073c
call fcn.00404280
lea eax, [ebp - 0x40]
mov edx, 0x470754
call fcn.00404280
lea eax, [ebp - 0x3c]
mov edx, 0x47076c
call fcn.00404280
lea eax, [ebp - 0x38]
mov edx, 0x470784
call fcn.00404280
lea eax, [ebp - 0x34]
mov edx, 0x470798
call fcn.00404280
lea eax, [ebp - 0x30]
mov edx, 0x4707b4
call fcn.00404280
xor ebx, ebx
cmp esi, ebx
jle 0x4704df
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 0x4704c2
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 0x470665
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 0x4707c4
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x470665
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 0x470655
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47064f
lea eax, [ebp - 0x15d]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402d48
push 0x4707e8
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 0x470804
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 0x470645
cmp dword [ebp - 0x24], 0
je 0x470645
cmp dword [ebp - 0x1c], 0
jbe 0x470645
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + ebx*4]
cmp dword [ebp - 0x1c], 0
jbe 0x470645
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.00470388
add edi, eax
lea eax, [ebp - 0x28]
mov edx, 0x470810
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 0x47054c
add esi, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jae 0x470665
test esi, esi
jne 0x470541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4706a5
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