Function at 0x404c19
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]
push ebx
push esi
mov dword [ebp - 0x650], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x658], eax
xor eax, eax
push 0x208
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push ebx
push eax
mov dword [ebp - 0x654], edx
mov dword [ebp - 0x648], ecx
call fcn.00435540
add esp, 0xc
test edi, edi
je 0x404c91
xor eax, eax
cmp ax, word [edi]
je 0x404c91
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x404ca5
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 0x404cfc
xor al, al
jmp 0x404fe3
lea eax, [edi + 1]
push eax
call fcn.0042e597
pop ecx
mov ecx, eax
mov dword [ebp - 0x634], ecx
test ecx, ecx
je 0x404cf5
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 0x404fd1
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 0x404fd1
test dword [ebp - 0x63c], 0xfffffffc
mov edi, ebx
jbe 0x404fd1
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 0x404dd4
cmp dword [ebp - 0x638], ebx
ja 0x404de7
mov eax, dword [ebp - 0x63c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x404d76
jmp 0x404fd1
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 0x404e61
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x404e53
mov word [eax], di
mov eax, dword [ebp - 0x630]
add eax, 2
mov dword [ebp - 0x630], eax
cmp word [eax], bx
jne 0x404e42
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 0x404fd1
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 0x404fd1
push 0x30
pop edx
push 0x39
pop esi
movzx ecx, word [eax]
cmp cx, dx
jb 0x404ec5
cmp cx, si
jbe 0x404eca
add eax, 2
jmp 0x404eb8
movzx ecx, word [eax]
mov dword [ebp - 0x640], eax
test cx, cx
je 0x404fd1
mov edi, eax
cmp cx, dx
jb 0x404ef0
cmp word [edi], si
ja 0x404ef0
add edi, 2
cmp word [edi], dx
jae 0x404ee3
movzx ecx, word [edi]
test cx, cx
je 0x404fd1
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 0x404fd1
movzx ecx, word [eax]
test cx, cx
je 0x404fd1
push 0x30
pop edx
push 0x39
pop edi
cmp cx, dx
jb 0x404f46
cmp cx, di
jbe 0x404f51
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404f3c
movzx ecx, word [eax]
test cx, cx
je 0x404fd1
mov esi, eax
cmp cx, dx
jb 0x404f6d
cmp word [esi], di
ja 0x404f6d
add esi, 2
cmp word [esi], dx
jae 0x404f60
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.00430457
mov edi, eax
pop ecx
add esi, 2
je 0x404f8e
cmp word [esi], bx
je 0x404f8e
push esi
call fcn.00430457
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x404fa0
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x654]
test ecx, ecx
je 0x404fb2
mov eax, dword [ebp - 0x65c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x650]
test eax, eax
je 0x404fbe
mov dword [eax], edi
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x404fca
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