Function at 0x42dd56
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523ff4
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x572480]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x572480]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edi + 0x10]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
cmp dword [eax + 0x14], 8
mov dword [esp + 0x34], eax
mov dword [eax + 0x10], ebx
jb 0x42ddb8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
call fcn.0042dc88
mov dword [edi + 0x38], eax
lea eax, [esp + 0x18]
push eax
push fcn.0042dd56
push 6
mov dword [edi + 0x3c], edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x42de08
xor al, al
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.004e72ee
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
mov word [esp + 0x48], ax
lea eax, [esp + 0x4a]
push ebx
push eax
call fcn.004e9070
add esp, 0xc
push 0x104
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42dde2
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x42dde2
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0042e023
mov dword [esp + 0x460], ebx
push dword [esp + 0x20]
lea eax, [esp + 0x48]
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x42de93
lea esi, [esp + 0x20]
call fcn.00460ab5
jmp 0x42dde2
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push 0x53a5c4
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], 4
call esi
test eax, eax
je 0x42de85
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [edi + 4], edx
movzx edx, word [eax + 0xe]
mov dword [edi + 8], edx
mov eax, dword [eax + 0x30]
and eax, ecx
mov dword [edi + 0xc], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
push str.VarFileInfoTranslation
push dword [esp + 0x2c]
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x42df15
lea esi, [esp + 0x20]
call fcn.00460ab5
mov al, bl
jmp 0x42dde4
xor eax, eax
push 0x1fe
mov word [esp + 0x250], ax
lea eax, [esp + 0x252]
push ebx
push eax
call fcn.004e9070
add esp, 0xc
xor edi, edi
test dword [esp + 0x10], 0xfffffffc
jbe 0x42dfab
mov eax, dword [esp + 0x40]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [esp + 0x254]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.0042e156
add esp, 0x10
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x254]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
je 0x42df90
cmp dword [esp + 0x14], ebx
jne 0x42df9e
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jb 0x42df41
jmp 0x42dfab
push dword [esp + 0x14]
push dword [esp + 0x38]
call fcn.00403fad
mov bl, 1
jmp 0x42df05