Function at 0x49b710
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56438a
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x8c], ebx
cmp esi, ebx
jne 0x49b77b
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x591838
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402c6c
jmp 0x49b97a
mov eax, esi
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b790
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00402c6c
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.0040a35f
push ebx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 2
call fcn.00475420
mov eax, dword [eax]
add esp, 0xc
cmp eax, ebx
je 0x49b7de
cmp eax, 1
je 0x49b7de
mov eax, 1
jmp 0x49b7e0
xor eax, eax
cmp al, bl
sete byte [ebp - 0x75]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x49b7fc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005295c1
add esp, 4
cmp byte [ebp - 0x75], bl
je 0x49b82e
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x591838
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402c6c
cmp dword [ebp - 0x40], 0x10
jb 0x49b97a
mov ecx, dword [ebp - 0x54]
push ecx
jmp 0x49b972
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 4
mov dword [ebp - 0x84], ebx
jae 0x49b851
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x84]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x49b90d
push esi
call fcn.0052b867
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49b907
push esi
push ebx
push edi
call fcn.0052b710
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
add esp, 0xc
push edi
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
je 0x49b8fe
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x7c]
push eax
push 0x5720f4
push edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x49b8fe
push 0x27
lea ecx, [ebp - 0x3b]
push ebx
push ecx
mov byte [ebp - 0x3c], bl
call fcn.0052b710
mov eax, dword [ebp - 0x7c]
movzx edx, word [eax + 0xa]
movzx esi, word [eax + 0xc]
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xe]
push esi
push eax
push ecx
push edx
push str._d._d._d._d
lea edx, [ebp - 0x3c]
push 0x28
push edx
call fcn.0052c88d
add esp, 0x28
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x74]
call fcn.004056c4
push edi
call fcn.0052b78a
add esp, 4
mov edi, dword [ebp - 0x88]
mov dword [ebp - 4], 3
jmp 0x49b92b
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402bda
mov esi, 0x10
cmp dword [ebp - 0x5c], esi
jb 0x49b95c
mov edx, dword [ebp - 0x70]
push edx
call fcn.005295c1
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x40], esi
jb 0x49b97a
mov eax, dword [ebp - 0x54]
push eax
call fcn.005295c1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052b498
mov esp, ebp
pop ebp
ret