Function at 0x41bd90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [esp + 0x1c], 0
je 0x41becb
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41becb
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ecx, ebx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
xor eax, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [str.agentmon.exe]
mov ecx, dword [0x473268]
mov edx, dword [0x47326c]
mov dword [esp + 0x20], eax
mov al, byte [0x473270]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x2c], al
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 0
mov dword [esp + 0x34], edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41be6f
mov al, byte [esp + 0x128]
test al, al
je 0x41be6f
lea edx, [esp + 0x128]
push 0x5c
push edx
call fcn.0045a180
add esp, 8
test eax, eax
je 0x41be6f
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x41be6f
lea edx, [esp + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41be65
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41becb
push esi
call fcn.00459619
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x41becd
mov ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41bed4
push edi
call fcn.0045932f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push str.StringFileInfo000004b0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41bf1e
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x10]
jge 0x41bf0c
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41bf30
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41bf30
mov ecx, dword [ebp + 8]
push ebx
push str.Unknown
push ecx
call fcn.00458f80
add esp, 0xc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push str.StringFileInfo000004b0ProductBuild
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41bf7e
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
jge 0x41bf6c
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41bf90
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41bf90
mov ecx, dword [ebp + 0xc]
push ebx
push str.Unknown
push ecx
call fcn.00458f80
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call fcn.0045932f
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret