Function at 0x40df49
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x648], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x654], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x658], eax
xor eax, eax
push 0x208
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.00435540
add esp, 0xc
test edi, edi
je 0x40dfc7
xor eax, eax
cmp ax, word [edi]
je 0x40dfc7
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x40dfdb
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x644], ebx
push 0x208
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x63c], ebx
call fcn.00435540
add esp, 0xc
mov dword [ebp - 0x630], ebx
lea eax, [ebp - 0x41c]
mov byte [ebp - 0x629], bl
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x40e032
xor al, al
jmp 0x40e319
lea eax, [edi + 1]
push eax
call fcn.0042e597
pop ecx
mov ecx, eax
mov dword [ebp - 0x634], ecx
test ecx, ecx
je 0x40e02b
lea eax, [edi + 1]
push eax
push ebx
push ecx
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x41c]
push dword [ebp - 0x634]
push edi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e307
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x644]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x634]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e307
test dword [ebp - 0x63c], 0xfffffffc
mov edi, ebx
jbe 0x40e307
mov ecx, dword [ebp - 0x644]
push 0x455708
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.0042fe23
add esp, 0x18
mov dword [ebp - 0x630], ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x634]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e10a
cmp dword [ebp - 0x638], ebx
ja 0x40e11d
mov eax, dword [ebp - 0x63c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x40e0ac
jmp 0x40e307
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00435540
cmp dword [ebp - 0x638], esi
lea eax, [ebp - 0x210]
cmovb esi, dword [ebp - 0x638]
push esi
push dword [ebp - 0x630]
push 0x105
push eax
call fcn.0042fd65
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x630], eax
push 0x2e
pop edi
cmp word [ebp - 0x210], bx
je 0x40e197
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x40e189
mov word [eax], di
mov eax, dword [ebp - 0x630]
add eax, 2
mov dword [ebp - 0x630], eax
cmp word [eax], bx
jne 0x40e178
lea eax, [ebp - 0x210]
mov byte [ebp - 0x629], bl
push edi
push eax
call fcn.0042fafe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e307
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.00430457
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x210]
push edi
push eax
mov word [esi], di
call fcn.0042fafe
add esp, 0xc
test eax, eax
je 0x40e307
push 0x30
pop edx
push 0x39
pop esi
movzx ecx, word [eax]
cmp cx, dx
jb 0x40e1fb
cmp cx, si
jbe 0x40e200
add eax, 2
jmp 0x40e1ee
movzx ecx, word [eax]
mov dword [ebp - 0x640], eax
test cx, cx
je 0x40e307
mov edi, eax
cmp cx, dx
jb 0x40e226
cmp word [edi], si
ja 0x40e226
add edi, 2
cmp word [edi], dx
jae 0x40e219
movzx ecx, word [edi]
test cx, cx
je 0x40e307
mov esi, ecx
xor ecx, ecx
push eax
mov word [edi], cx
call fcn.00430457
push 0x2e
push dword [ebp - 0x640]
mov dword [ebp - 0x65c], eax
mov word [edi], si
call fcn.0042fafe
add esp, 0xc
test eax, eax
je 0x40e307
movzx ecx, word [eax]
test cx, cx
je 0x40e307
push 0x30
pop edx
push 0x39
pop edi
cmp cx, dx
jb 0x40e27c
cmp cx, di
jbe 0x40e287
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40e272
movzx ecx, word [eax]
test cx, cx
je 0x40e307
mov esi, eax
cmp cx, dx
jb 0x40e2a3
cmp word [esi], di
ja 0x40e2a3
add esi, 2
cmp word [esi], dx
jae 0x40e296
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.00430457
mov edi, eax
pop ecx
add esi, 2
je 0x40e2c4
cmp word [esi], bx
je 0x40e2c4
push esi
call fcn.00430457
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x40e2d6
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x654]
test ecx, ecx
je 0x40e2e8
mov eax, dword [ebp - 0x65c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x650]
test eax, eax
je 0x40e2f4
mov dword [eax], edi
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x40e300
mov dword [eax], ebx
mov byte [ebp - 0x629], 1
push dword [ebp - 0x634]
call fcn.0042f61c
mov al, byte [ebp - 0x629]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 0x14