Function at 0x5c24f0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 8]
mov eax, dword [eax]
sub esp, 0x120
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
je 0x5c250b
add eax, 4
jmp 0x5c250d
xor eax, eax
push eax
call dword [0x6b9518]
push 0x104
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [0x6b951c]
test eax, eax
jne 0x5c2559
mov esi, dword [esp + 0x134]
or ecx, 0xffffffff
mov dword [esi], ebp
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
mov ecx, esi
call fcn.0049d9d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.004a03e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5c2578
add eax, 4
jmp 0x5c257a
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00499690
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x5c259e
add eax, 4
jmp 0x5c25a0
xor eax, eax
mov edx, dword [esp + 0x1c]
push edx
push esi
push ebp
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x5c263d
mov ebx, dword [esp + 0x134]
or ecx, 0xffffffff
mov dword [ebx], ebp
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
mov ecx, ebx
call fcn.0049d9d0
lea ecx, [esp + 0x18]
call fcn.004996f0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x5c26e9
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x5c26e9
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5c26d8
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x5c26d3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5c26d8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x660efc
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x5c26f6
mov ebx, dword [esp + 0x134]
or ecx, 0xffffffff
mov dword [ebx], ebp
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
mov ecx, ebx
call fcn.0049d9d0
lea ecx, [esp + 0x18]
call fcn.004996f0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x5c26e9
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x5c26e9
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5c26d8
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x5c26d3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5c26d8
mov eax, 0xff
cmp eax, ebp
jne 0x5c26e9
mov eax, dword [esp + 0x10]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x120
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + 0xc]
movzx edx, word [eax + 0xe]
and ecx, 0xffff
push ecx
mov ecx, dword [eax + 8]
push edx
movzx edx, word [eax + 0xa]
and ecx, 0xffff
push ecx
push edx
lea eax, [esp + 0x24]
push str._d._d._d._d
push eax
call fcn.00403a60
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x18
test eax, eax
mov dword [ebp], eax
je 0x5c27b4
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x5c2763
push eax
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5c27b4
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c27b4
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c27a3
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c279e
push esi
call ebx
and eax, 0xff
jmp 0x5c27a3
mov eax, 0xff
test eax, eax
jne 0x5c27b4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.004996f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c281a
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c281a
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c2809
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c2804
push esi
call ebx
and eax, 0xff
jmp 0x5c2809
mov eax, 0xff
test eax, eax
jne 0x5c281a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00499410
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x120
ret