Function at 0x4706e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xa0], esi
call fcn.00471bd0
add esp, 4
test al, al
je 0x470a77
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x470a77
push eax
call fcn.005649e3
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 4], 0
push 0
push dword [ebp - 0xa0]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], 0
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0
push eax
push 0x5f7190
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x470a6a
test dword [ebp - 0x98], 0xfffffffc
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x9c], ecx
je 0x470a6a
mov byte [edi + 0x58], 0
mov bl, 1
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5f71c8
lea eax, [ebp - 0x74]
mov byte [ebp - 0x8d], bl
push 0x32
push eax
call fcn.004729f0
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47086a
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0043df5f
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], bl
push eax
call fcn.0045b350
mov ecx, dword [ebp - 0x7c]
add esp, 4
test ecx, ecx
je 0x47085b
lea eax, [ebp - 0x8c]
cmp edi, eax
je 0x47085b
cmp dword [ebp - 0x78], 8
push ecx
cmovae eax, dword [ebp - 0x8c]
mov ecx, edi
push eax
call fcn.004049aa
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.00404866
mov ecx, dword [ebp - 0x9c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5f7220
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.004729f0
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x470901
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0043df5f
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
call fcn.0045b350
mov edx, dword [ebp - 0x7c]
add esp, 4
test edx, edx
je 0x4708f2
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x8c]
cmp ecx, eax
je 0x4708f2
cmp dword [ebp - 0x78], 8
push edx
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.004049aa
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.00404866
mov ecx, dword [ebp - 0x9c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5f7270
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.004729f0
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x470a6a
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0043df5f
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
call fcn.0045b350
mov ecx, dword [ebp - 0x7c]
add esp, 4
test ecx, ecx
je 0x470a5f
lea ebx, [edi + 0x30]
lea eax, [ebp - 0x8c]
cmp ebx, eax
je 0x470993
cmp dword [ebp - 0x78], 8
push ecx
cmovae eax, dword [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.004049aa
cmp dword [edi + 0x40], 0
je 0x470a59
mov eax, dword [ebx + 0x14]
mov ecx, ebx
mov dword [ebp - 0xa0], eax
cmp eax, 8
jb 0x4709af
mov ecx, dword [ebx]
push 1
push 0x5ebdb0
push 0
push dword [ebx + 0x10]
push ecx
call fcn.00406c26
add esp, 0x14
cmp eax, 0xffffffff
je 0x470a0b
cmp dword [ebp - 0xa0], 8
lea ebx, [edi + 0x30]
mov ecx, ebx
jb 0x4709d9
mov ecx, dword [ebx]
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x4c]
push eax
lea eax, [edi + 0x48]
push eax
push 0x5f7158
push ecx
call fcn.00472a20
push 0
push 0x5edefc
push 0x5f02a0
push ebx
call fcn.00406ebd
add esp, 0x28
jmp 0x470a59
cmp dword [ebx + 0x14], 8
jb 0x470a16
mov eax, dword [edi + 0x30]
jmp 0x470a19
lea eax, [edi + 0x30]
push 1
push 0x5edefc
push 0
push dword [ebx + 0x10]
push eax
call fcn.00406c26
add esp, 0x14
cmp eax, 0xffffffff
je 0x470a59
cmp dword [ebx + 0x14], 8
jb 0x470a3b
mov ebx, dword [ebx]
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x4c]
push eax
lea eax, [edi + 0x48]
push eax
push 0x5f7178
push ebx
call fcn.00472a20
add esp, 0x18
mov bl, byte [ebp - 0x8d]
lea ecx, [ebp - 0x8c]
call fcn.00404866
test esi, esi
je 0x470a77
push esi
call fcn.005649de
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret