Function at 0x421be0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47830b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x240], eax
test eax, eax
je 0x421c64
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x421c64
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
test eax, eax
jne 0x421c6b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x421e09
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x421c64
push 0x47c6a0
push esi
call fcn.0044e428
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x421c64
push ebx
push esi
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x421c64
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], 0
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x228], 0
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor edi, edi
mov dword [ebp - 0x23c], 0
test dword [ebp - 0x228], 0xfffffffc
jbe 0x421dfa
nop dword [eax]
call fcn.004067b0
test eax, eax
je 0x421e54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x234]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x22c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.00415030
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x238]
add esp, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x421dac
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x224]
push eax
push str.StringFileInfo040904e4CompanyName
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x421dc9
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x421dc9
push dword [ebp - 0x240]
push eax
call fcn.0045142b
add esp, 8
test eax, eax
jne 0x421e25
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421de8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
inc edi
shr eax, 2
cmp edi, eax
jb 0x421d10
push ebx
call fcn.0044e423
mov eax, dword [ebp - 0x23c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x224]
push str.company_name__s
push 0x48b440
call fcn.00430910
add esp, 0xc
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x22c]
call fcn.00407520
jmp 0x421dfa
push 0x80004005
call fcn.004064f0
int3