Function at 0x404540
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42c980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
add ecx, 0x5f0
push edi
xor ebx, ebx
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.00421152
push str.Explorer.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.0042144c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x404842
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x1c], 1
jae 0x4045fb
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push str.StringFileInfo040904b0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x1c]
pop esi
cmp eax, 4
jne 0x404830
mov eax, dword [0x438ca8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
mov eax, dword [edx]
push eax
push str._08x
push ecx
call fcn.0042042c
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push 4
push edx
call fcn.0041ffeb
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.0042121d
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.004210e4
mov eax, dword [esp + 0xc]
push str.0804
push eax
call fcn.0041179e
add esp, 8
test eax, eax
jne 0x4046ba
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0xc]
push str.0404
push ecx
call fcn.0041179e
add esp, 8
test eax, eax
jne 0x404713
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
pop edi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edx, dword [esp + 0xc]
push str.0C04
push edx
call fcn.0041179e
add esp, 8
test eax, eax
jne 0x40476c
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
pop edi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0xc]
push str.1004
push eax
call fcn.0041179e
add esp, 8
test eax, eax
jne 0x4047c5
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
pop edi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0xc]
push str.1404
push ecx
call fcn.0041179e
add esp, 8
mov byte [esp + 0x30], 1
test eax, eax
lea ecx, [esp + 0xc]
jne 0x40481e
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
pop edi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.004210e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.004210e4
cmp ebp, ebx
je 0x404842
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004210e4
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret