Function at 0x405a24
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8a9586
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x138]
push 0x104
push eax
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x34]
push eax
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405b2f
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x405b2f
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov edx, 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
je 0x405abb
test eax, eax
jne 0x405aab
xor eax, eax
jmp 0x405ab2
push eax
call fcn.00898760
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push dword [ebp - 0x30]
lea edx, [ebp - 0x138]
push eax
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405b03
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push edx
push 0x9ef0f4
push dword [ebp - 0x30]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405b03
mov edi, dword [ebp - 0x28]
test edi, edi
jne 0x405b83
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405b2f
push eax
call fcn.00888fb0
pop ecx
mov edi, 0x9ef11c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x405b4a
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x405b3e
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov ebx, eax
neg ecx
add ecx, 0xffffffff
cmp ecx, ebx
ja 0x405b60
call fcn.008898cf
test ebx, ebx
ja 0x405c33
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
lea ebx, [edi - 1]
neg edx
add edx, 0xffffffff
cmp edx, ebx
ja 0x405b9d
call fcn.008898cf
test ebx, ebx
jne 0x405beb
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405bcd
push eax
call fcn.00888fb0
pop ecx
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0
mov eax, dword [ecx + 8]
lea edi, [eax + edi - 1]
mov dword [ebp - 0x14], edi
push edi
call fcn.00404278
movzx eax, al
test eax, eax
je 0x405ba1
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
add edi, dword [eax + 8]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov byte [edx + ecx], 0
jmp 0x405ba1
mov ecx, dword [ebp + 8]
push 0
mov edx, dword [ecx + 8]
add edx, ebx
mov dword [ebp - 0x14], edx
push edx
call fcn.00404278
movzx edx, al
test edx, edx
je 0x405b68
mov edx, dword [ebp + 8]
mov edi, dword [edx + 4]
add edi, dword [edx + 8]
mov esi, 0x9ef11c
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov byte [edx + ecx], 0
jmp 0x405b68