Function at 0x42e8e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x658
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x65c]
push ebp
push esi
mov esi, dword [esp + 0x66c]
push 0x208
mov dword [esp + 0x28], edx
xor ebp, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x66c]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x24a]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x34], eax
mov word [esp + 0x250], cx
call fcn.004f08c0
add esp, 0xc
cmp esi, ebp
je 0x42e95e
xor eax, eax
cmp ax, word [esi]
je 0x42e95e
push 0x104
push esi
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x42e972
push 0x104
lea edx, [esp + 0x248]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea ecx, [esp + 0x456]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x45c], ax
call fcn.004f08c0
add esp, 0xc
push ebp
lea edx, [esp + 0x248]
push edx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x42e9c6
xor al, al
jmp 0x42ec7f
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004e94db
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
jne 0x42e9e5
xor al, al
jmp 0x42ec7d
push edi
push ebp
push ebx
call fcn.004f08c0
add esp, 0xc
push ebx
push esi
push ebp
lea eax, [esp + 0x258]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42ec70
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42ec70
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x42ec70
jmp 0x42ea40
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x468]
push 0x104
push eax
call fcn.004ed6e4
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x460]
push eax
push ebx
mov dword [esp + 0x24], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42ea96
mov edi, dword [esp + 0x24]
cmp edi, ebp
ja 0x42eaa7
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x42ea40
jmp 0x42ec70
push 0x208
lea eax, [esp + 0x46]
xor edx, edx
push ebp
push eax
mov word [esp + 0x4c], dx
call fcn.004f08c0
add esp, 0xc
cmp edi, 0x104
jbe 0x42eace
mov edi, 0x104
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004ec863
add esp, 0xc
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
cmp word [esp + 0x40], bp
je 0x42eb12
mov ecx, 0x2c
cmp cx, word [eax]
jne 0x42eb06
mov edx, 0x2e
mov word [eax], dx
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp word [eax], bp
jne 0x42eaf0
lea eax, [esp + 0x40]
push 0x2e
push eax
mov byte [esp + 0x1b], 0
call fcn.004ed6be
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x42ec70
lea edx, [esp + 0x40]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.004ed687
mov dword [esp + 0x38], eax
mov eax, 0x2e
push eax
lea ecx, [esp + 0x48]
push ecx
mov word [esi], ax
call fcn.004ed6be
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x42ec70
movzx eax, word [edi]
cmp ax, 0x30
jb 0x42eb72
cmp ax, 0x39
jbe 0x42eb77
add edi, 2
jmp 0x42eb63
cmp word [edi], bp
je 0x42ec70
cmp word [edi], 0x30
mov esi, edi
jb 0x42eb97
cmp word [esi], 0x39
ja 0x42eb97
add esi, 2
cmp word [esi], 0x30
jae 0x42eb88
movzx eax, word [esi]
cmp ax, bp
je 0x42ec70
xor edx, edx
push edi
movzx ebp, ax
mov word [esi], dx
call fcn.004ed687
push 0x2e
push edi
mov ebx, eax
mov word [esi], bp
call fcn.004ed6be
add esp, 0xc
test eax, eax
je 0x42ec6c
movzx ecx, word [eax]
test cx, cx
je 0x42ec6c
cmp cx, 0x30
jb 0x42ebe1
cmp cx, 0x39
jbe 0x42ebef
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x42ebd5
jmp 0x42ec6c
cmp word [eax], 0
je 0x42ec6c
cmp word [eax], 0x30
mov esi, eax
jb 0x42ec0f
lea ecx, [ecx]
cmp word [esi], 0x39
ja 0x42ec0f
add esi, 2
cmp word [esi], 0x30
jae 0x42ec00
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.004ed687
mov edi, eax
lea eax, [esi + 2]
add esp, 4
test eax, eax
je 0x42ec37
cmp word [eax], 0
je 0x42ec37
push eax
call fcn.004ed687
add esp, 4
jmp 0x42ec3b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x42ec49
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x42ec53
mov dword [ecx], ebx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x42ec5d
mov dword [ecx], edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x42ec67
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.004eacff
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x65c]
pop esi
pop ebp
xor ecx, esp
call fcn.004ea83a
add esp, 0x658
ret 0xc