Function at 0x4214e0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4278
call fcn.0044c0a0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
mov ecx, 0x491b14
mov dword [esp + 0x14], ebp
call fcn.00421dc0
mov ebx, eax
push 0x491808
lea esi, [ebx + 0x28]
call fcn.0044b1a8
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.00422910
test al, al
je 0x421541
mov ecx, dword [esi + 4]
push edi
push 0x491808
push ecx
call fcn.00421840
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], bp
mov dword [ebx + 0x78], ebp
mov ebp, dword [esp + 0x428c]
test ebp, ebp
je 0x421582
push ebp
call fcn.0044b1a8
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.00422910
test al, al
je 0x421582
mov eax, dword [esi + 4]
push edi
push ebp
push eax
call fcn.00421840
mov ecx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [ecx + edi*2], 0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x80]
push 0x104
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
push 0x5c
push eax
call fcn.0044b659
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4215d0
add ebp, 2
jmp 0x4215d7
lea ebp, [esp + 0x80]
push ebp
lea esi, [ebx + 0x48]
call fcn.0044b1a8
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.00422910
test al, al
je 0x42160d
mov ecx, dword [esi + 4]
push edi
push ebp
push ecx
call fcn.00421840
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], 0
lea eax, [esp + 0x80]
lea esi, [ebx + 0x38]
push eax
call fcn.0044b1a8
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.00422910
test al, al
je 0x421651
mov edx, dword [esi + 4]
lea ecx, [esp + 0x80]
push edi
push ecx
push edx
call fcn.00421840
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [eax + edi*2], 0
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov cx, word [0x491808]
lea edx, [esp + 0x1c]
stosw word es:[edi], ax
mov word [esp + 0x288], cx
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x28a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x80]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x421768
lea ecx, [esp + 0x288]
lea edx, [esp + 0x80]
push ecx
push eax
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421768
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x290]
push 0x4886c0
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421768
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
lea eax, [esp + 0x28]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push eax
call fcn.0044b699
lea ecx, [esp + 0x38]
add ebx, 0x58
push ecx
call fcn.0044b1a8
add esp, 0x1c
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00422910
test al, al
je 0x4217b1
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x20]
test esi, esi
jbe 0x421751
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x421742
mov edx, dword [ebx + 4]
mov dword [ebx + 8], esi
pop edi
mov word [edx + esi*2], 0
pop esi
pop ebp
pop ebx
add esp, 0x4278
ret
push 0x491808
add ebx, 0x58
call fcn.0044b1a8
add esp, 4
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00422910
test al, al
je 0x4217b1
mov eax, dword [ebx + 4]
mov ecx, 0x491808
test esi, esi
jbe 0x4217a5
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x421796
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov word [eax + esi*2], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4278
ret