Function at 0x4de35d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a05cc
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
jb 0x4de3b6
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
jne 0x4de3fe
xor ecx, ecx
push str.GetFileVersionInfoSize_Failed
inc ecx
call fcn.0047c666
pop ecx
xor al, al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x2c]
call fcn.00431ded
mov dword [esp + 0x140], ebx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4de41a
mov eax, dword [eax]
push dword [esp + 0x2c]
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4de4d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [esp + 0x140], 1
push str.GetFileVersionInfo_Failed_with_Error_code_
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [esp + 0xf4]
push eax
mov eax, esi
call fcn.00409b30
mov byte [esp + 0x140], 2
cmp dword [esp + 0x108], 8
mov eax, dword [esp + 0xf4]
jae 0x4de48e
lea eax, [esp + 0xf4]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
mov byte [esp + 0x140], 1
lea ecx, [esp + 0xf4]
call fcn.004090d2
mov byte [esp + 0x140], bl
lea eax, [esp + 0x5c]
call fcn.004021a3
or dword [esp + 0x140], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.0040a267
mov al, bl
jmp 0x4de3d8
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0x5c2724
push dword [esp + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4de62f
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xe]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], ecx
call fcn.00409ac6
mov dword [esp + 0x10], eax
mov byte [esp + 0x140], 3
push esi
push eax
call fcn.00436f9b
mov esi, dword [esp + 0x10]
push 0x2e
push esi
call fcn.004101f8
push ebx
lea eax, [esp + 0x58]
push 2
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0x30
pop ecx
push edi
push esi
mov word [eax + esi + 0x40], cx
call fcn.00436f9b
push 0x2e
push esi
call fcn.004101f8
push ebx
lea eax, [esp + 0x48]
push 2
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
push 0x30
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
pop ecx
push dword [esp + 0x18]
mov word [eax + esi + 0x40], cx
push esi
call fcn.00436f9b
push 0x2e
push esi
call fcn.004101f8
push ebx
lea eax, [esp + 0x100]
push 4
push eax
call fcn.0057d246
add esp, 0x14
mov ecx, eax
call fcn.0040d109
push 0x30
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
pop ecx
push dword [esp + 0x1c]
mov word [eax + esi + 0x40], cx
push esi
call fcn.00436f9b
lea eax, [esp + 0x114]
push eax
mov eax, esi
call fcn.00409b30
mov byte [esp + 0x140], 4
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x11c]
call fcn.0040ac9e
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x114]
call fcn.004090d2
mov byte [esp + 0x140], bl
lea eax, [esp + 0x5c]
call fcn.004021a3
mov bl, 1
jmp 0x4de4bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [esp + 0x140], 5
push str.VerQueryValue_Failed_with_error_code_
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [esp + 0xf4]
push eax
mov eax, esi
call fcn.00409b30
mov byte [esp + 0x140], 6
cmp dword [esp + 0x108], 8
mov eax, dword [esp + 0xf4]
jae 0x4de68e
lea eax, [esp + 0xf4]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
mov byte [esp + 0x140], 5
jmp 0x4de4a0