Function at 0x49b410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e617
mov eax, dword fs:[0]
push eax
sub esp, 0x358
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0x6f6ba0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], 1
call fcn.0049b710
add esp, 4
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
inc eax
mov dword [ebp - 0x360], eax
cmp eax, 0x100
jle 0x49b4b0
add eax, eax
push eax
call fcn.00526109
mov ecx, eax
add esp, 4
mov dword [ebp - 0x35c], ecx
test ecx, ecx
jne 0x49b4a2
call fcn.00418900
mov ecx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
jmp 0x49b4c6
lea ecx, [ebp - 0x354]
mov dword [ebp - 0x364], 0x100
mov dword [ebp - 0x35c], ecx
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 4]
mov byte [ebp - 4], 2
add edx, esi
je 0x49b4e8
lea eax, [edi + edi]
push eax
push edx
push ecx
call fcn.005229c0
mov ecx, dword [ebp - 0x35c]
add esp, 0xc
xor eax, eax
push eax
mov word [ecx + edi*2], ax
push dword [ebp - 0x35c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x49b6a9
mov dword [ebp - 0x150], edi
cmp edi, 0x100
jle 0x49b540
push edi
call fcn.00526109
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14c], ecx
test ecx, ecx
jne 0x49b532
call fcn.00418900
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
jmp 0x49b556
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x154], 0x100
mov dword [ebp - 0x14c], ecx
push ecx
push edi
push 0
push dword [ebp - 0x35c]
mov byte [ebp - 4], 3
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49b690
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x7c9ebc
push dword [ebp - 0x14c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49b690
cmp dword [ebp - 0x2c], 0
je 0x49b690
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
call fcn.0049b2d0
mov ecx, eax
mov eax, 0x20
mov byte [ebp - 4], 4
mov word [ebp - 0x34], ax
push dword [ebp - 0x34]
movzx eax, word [edi + 0x12]
push 0xa
push 0
cdq
push edx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404bd0
mov dword [ebp - 0x14], 3
mov eax, 0x20
mov byte [ebp - 4], 5
mov word [ebp - 0x38], ax
lea ecx, [ebp - 0x24]
push dword [ebp - 0x38]
movzx eax, word [edi + 0x10]
push 0xa
push 0
cdq
push edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404bd0
mov dword [ebp - 0x14], 7
mov eax, 0x20
mov byte [ebp - 4], 6
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0x20]
push dword [ebp - 0x3c]
movzx eax, word [edi + 0x16]
push 0xa
push 0
cdq
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404bd0
mov dword [ebp - 0x14], 0xf
mov eax, 0x20
mov byte [ebp - 4], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x40]
movzx eax, word [edi + 0x14]
push 0xa
push 0
cdq
push edx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404bd0
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword [ebx], eax
call fcn.004011e0
lea ecx, [ebp - 0x1c]
call fcn.004011e0
lea ecx, [ebp - 0x20]
call fcn.004011e0
lea ecx, [ebp - 0x24]
call fcn.004011e0
lea ecx, [ebp - 0x44]
call fcn.004011e0
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x144]
cmp eax, ecx
je 0x49b6a9
push eax
call fcn.005260ee
add esp, 4
mov eax, dword [ebp - 0x35c]
lea ecx, [ebp - 0x354]
cmp eax, ecx
je 0x49b6c2
push eax
call fcn.005260ee
add esp, 4
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x49b6e1
cmp eax, 0xffffffff
je 0x49b6ee
or edx, 0xffffffff
lock xadd dword [ecx], edx
cmp edx, 1
setne dl
test dl, dl
jne 0x49b6ee
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4