Function at 0x42e2f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x658
mov eax, dword [0x53a1a4]
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.004f0190
add esp, 0xc
cmp esi, ebp
je 0x42e36e
xor eax, eax
cmp ax, word [esi]
je 0x42e36e
push 0x104
push esi
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x42e382
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.004f0190
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 0x42e3d6
xor al, al
jmp 0x42e68f
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004e8dab
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
jne 0x42e3f5
xor al, al
jmp 0x42e68d
push edi
push ebp
push ebx
call fcn.004f0190
add esp, 0xc
push ebx
push esi
push ebp
lea eax, [esp + 0x258]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42e680
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 0x42e680
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x42e680
jmp 0x42e450
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.004ecfb4
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 0x42e4a6
mov edi, dword [esp + 0x24]
cmp edi, ebp
ja 0x42e4b7
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x42e450
jmp 0x42e680
push 0x208
lea eax, [esp + 0x46]
xor edx, edx
push ebp
push eax
mov word [esp + 0x4c], dx
call fcn.004f0190
add esp, 0xc
cmp edi, 0x104
jbe 0x42e4de
mov edi, 0x104
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004ec133
add esp, 0xc
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
cmp word [esp + 0x40], bp
je 0x42e522
mov ecx, 0x2c
cmp cx, word [eax]
jne 0x42e516
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 0x42e500
lea eax, [esp + 0x40]
push 0x2e
push eax
mov byte [esp + 0x1b], 0
call fcn.004ecf8e
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x42e680
lea edx, [esp + 0x40]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.004ecf57
mov dword [esp + 0x38], eax
mov eax, 0x2e
push eax
lea ecx, [esp + 0x48]
push ecx
mov word [esi], ax
call fcn.004ecf8e
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x42e680
movzx eax, word [edi]
cmp ax, 0x30
jb 0x42e582
cmp ax, 0x39
jbe 0x42e587
add edi, 2
jmp 0x42e573
cmp word [edi], bp
je 0x42e680
cmp word [edi], 0x30
mov esi, edi
jb 0x42e5a7
cmp word [esi], 0x39
ja 0x42e5a7
add esi, 2
cmp word [esi], 0x30
jae 0x42e598
movzx eax, word [esi]
cmp ax, bp
je 0x42e680
xor edx, edx
push edi
movzx ebp, ax
mov word [esi], dx
call fcn.004ecf57
push 0x2e
push edi
mov ebx, eax
mov word [esi], bp
call fcn.004ecf8e
add esp, 0xc
test eax, eax
je 0x42e67c
movzx ecx, word [eax]
test cx, cx
je 0x42e67c
cmp cx, 0x30
jb 0x42e5f1
cmp cx, 0x39
jbe 0x42e5ff
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x42e5e5
jmp 0x42e67c
cmp word [eax], 0
je 0x42e67c
cmp word [eax], 0x30
mov esi, eax
jb 0x42e61f
lea ecx, [ecx]
cmp word [esi], 0x39
ja 0x42e61f
add esi, 2
cmp word [esi], 0x30
jae 0x42e610
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.004ecf57
mov edi, eax
lea eax, [esi + 2]
add esp, 4
test eax, eax
je 0x42e647
cmp word [eax], 0
je 0x42e647
push eax
call fcn.004ecf57
add esp, 4
jmp 0x42e64b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x42e659
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x42e663
mov dword [ecx], ebx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x42e66d
mov dword [ecx], edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x42e677
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.004ea5cf
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.004ea10a
add esp, 0x658
ret 0xc