Function at 0x421fa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45dfe0
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x473b80]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x14
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], edi
call fcn.00444804
add esp, 4
cmp eax, edi
je 0x42259e
mov dword [esp + 0x24], eax
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x24]
mov bl, 1
mov byte [eax + 0x10], bl
mov ecx, dword [esp + 0x24]
mov byte [ecx + 0x11], bl
mov dword [esp + 0x188], edi
push 0x14
mov dword [esp + 0x40], edi
call fcn.00444804
add esp, 4
cmp eax, edi
je 0x422575
mov dword [esp + 0x38], eax
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x38]
mov byte [edx + 0x10], bl
mov eax, dword [esp + 0x38]
mov byte [eax + 0x11], bl
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x18c], bl
call fcn.00421f30
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4221a6
lea esp, [esp]
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
cmp byte [eax + 0x11], 0
lea edx, [ebx + 0xc]
mov ecx, esi
jne 0x4220b8
mov edi, dword [edx]
cmp dword [eax + 0xc], edi
jae 0x4220ae
mov eax, dword [eax + 8]
jmp 0x4220b2
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x11], 0
je 0x4220a4
mov dword [esp + 0x1c], ecx
cmp ecx, esi
je 0x4220cd
mov eax, dword [edx]
cmp eax, dword [ecx + 0xc]
jb 0x4220cd
lea eax, [esp + 0x1c]
jmp 0x4220d5
mov dword [esp + 0x18], esi
lea eax, [esp + 0x18]
cmp dword [eax], esi
jne 0x422134
push edx
lea edi, [esp + 0x4c]
lea eax, [esp + 0x38]
call fcn.00422a30
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x54]
cmp ecx, dword [eax + 0x58]
je 0x422130
mov edi, eax
lea eax, [edi + 0x3c]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x54]
cmp esi, dword [edi + 0x58]
je 0x422125
jmp 0x422110
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, dword [edi + 0x58]
jne 0x422110
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x24]
cmp byte [ebx + 0x4e1], 0
jne 0x422195
mov eax, dword [ebx + 8]
cmp byte [eax + 0x4e1], 0
jne 0x42216f
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x4e1], 0
jne 0x422195
jmp 0x422160
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x4e1], 0
je 0x422160
jmp 0x422195
mov eax, dword [ebx + 4]
cmp byte [eax + 0x4e1], 0
jne 0x422193
jmp 0x422180
cmp ebx, dword [eax + 8]
jne 0x422193
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x4e1], 0
je 0x422180
mov ebx, eax
mov edx, dword [esp + 0x10]
cmp ebx, dword [edx + 0x18]
jne 0x422090
xor edi, edi
jmp 0x4221aa
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x3c], edi
je 0x422232
mov eax, dword [esp + 0x38]
mov ebx, dword [eax]
cmp ebx, eax
je 0x422232
mov esi, dword [esp + 0x10]
add esi, 0x14
lea eax, [ebx + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, esi
call fcn.00422b60
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
lea edi, [esp + 0x50]
call fcn.00413430
cmp byte [ebx + 0x11], 0
jne 0x422228
mov eax, dword [ebx + 8]
cmp byte [eax + 0x11], 0
jne 0x42220d
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
jne 0x422228
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
je 0x422201
jmp 0x422228
mov eax, dword [ebx + 4]
cmp byte [eax + 0x11], 0
jne 0x422226
cmp ebx, dword [eax + 8]
jne 0x422226
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x422216
mov ebx, eax
cmp ebx, dword [esp + 0x38]
jne 0x4221c5
mov esi, dword [esp + 0x24]
mov esi, dword [esi]
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x24]
je 0x4224c0
mov eax, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x64], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x64]
lea edx, [esi + 0xc]
call fcn.00422920
mov edi, eax
mov eax, dword [esi + 0xc]
cmp dword [edi], eax
je 0x422470
lea ecx, [esp + 0x60]
push ecx
push eax
mov dword [edi], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x60]
push eax
push 0
push 0x410
mov dword [edi + 0x4cc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x42240a
push 0x208
lea edx, [edi + 0x84]
push edx
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push 0x208
lea esi, [edi + 0x28c]
push esi
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4222d0
sub eax, edx
sar eax, 1
je 0x4223ff
lea eax, [esp + 0x44]
push eax
push esi
mov dword [esp + 0x4c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4223ff
mov ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4223fb
mov edx, dword [esp + 0x14]
push ebx
push edx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4223eb
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
push ecx
push 0x468634
push ebx
mov dword [esp + 0x24], 0
call esi
test eax, eax
je 0x4223eb
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0x7e]
push eax
mov word [esp + 0x80], dx
call fcn.00449a10
mov eax, dword [esp + 0x68]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
add esp, 0xc
push str.FileDescription
push ecx
push edx
lea eax, [esp + 0x80]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x7c]
push eax
push ebx
mov dword [esp + 0x60], 0
call esi
test eax, eax
je 0x4223eb
mov eax, dword [esp + 0x48]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4223d0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [edi + 0x4b0]
call fcn.004032b0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov edx, dword [edi]
push 0x40
lea ecx, [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, dword [edi]
lea eax, [edi + 0x494]
push ecx
call fcn.00422630
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x54]
cmp edx, dword [eax + 0x58]
je 0x422470
mov ebx, eax
lea eax, [ebx + 0x3c]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x54]
cmp esi, dword [ebx + 0x58]
je 0x422461
jmp 0x422450
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax]
push edi
call edx
add esi, 4
cmp esi, dword [ebx + 0x58]
jne 0x422450
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x11], 0
jne 0x4224b6
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x11], 0
jne 0x422495
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
jne 0x422491
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
je 0x422487
mov esi, ecx
jmp 0x4224b2
mov eax, dword [esi + 4]
cmp byte [eax + 0x11], 0
jne 0x4224b0
mov edi, edi
cmp esi, dword [eax + 8]
jne 0x4224b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x4224a0
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x24]
jne 0x422250
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x24]
push eax
call ebx
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x58]
je 0x4224fa
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x54]
mov esi, dword [esi + 0x58]
cmp eax, esi
je 0x4224f7
lea esp, [esp]
add eax, 4
cmp eax, esi
jne 0x4224f0
push edi
call ebx
mov byte [esp + 0x188], 2
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x38]
lea eax, [esp + 0x3c]
call fcn.00422c00
mov edx, dword [esp + 0x38]
push edx
call fcn.00444884
add esp, 4
mov dword [esp + 0x188], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x38]
lea eax, [esp + 0x28]
call fcn.00422c00
mov eax, dword [esp + 0x24]
push eax
call fcn.00444884
add esp, 4
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00444627
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x34], edi
call fcn.00444d6a
push 0x46d608
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], vtable.std::bad_alloc.0
call fcn.004474c8
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], edi
call fcn.00444d6a
push 0x46d608
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call fcn.004474c8
int3