Function at 0x504d90
Capabilities:
Access peb ldr_data
Get file system object information
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x60
push 0
push 0
dec ecx
jne 0x504d98
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50512e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 4]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 8]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0xc]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x10]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x14]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x1c]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x20]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x24]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x28]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x2c]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x30]
xor edx, edx
call fcn.004077d0
lea eax, [ebx + 0x34]
xor edx, edx
call fcn.004077d0
mov byte [ebx + 0x38], 0
mov byte [ebx + 0x3c], 0
mov byte [ebx + 0x39], 0
mov byte [ebx + 0x3a], 0
mov byte [ebx + 0x3b], 0
mov byte [ebx + 0x3d], 0
push 0x400
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040785c
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x504e8f
mov eax, ebx
lea edx, [ebp - 0xbc]
mov ecx, 0x50
call fcn.004079e0
push 0x2000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040785c
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x505108
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040785c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x505108
mov eax, dword [ebp - 0x1c]
call fcn.00404280
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x505101
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea edx, [ebp - 0x2d4]
mov eax, 0x505148
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2d4]
lea eax, [ebx + 4]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2d8]
mov eax, 0x50516c
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2d8]
lea eax, [ebx + 8]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2dc]
mov eax, 0x505198
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2dc]
lea eax, [ebx + 0xc]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2e0]
mov eax, 0x5051bc
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2e0]
lea eax, [ebx + 0x10]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2e4]
mov eax, 0x5051e4
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2e4]
lea eax, [ebx + 0x14]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2e8]
mov eax, 0x505210
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2e8]
lea eax, [ebx + 0x18]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2ec]
mov eax, 0x50523c
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2ec]
lea eax, [ebx + 0x1c]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2f0]
mov eax, 0x50526c
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2f0]
lea eax, [ebx + 0x20]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2f4]
mov eax, 0x505290
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2f4]
lea eax, [ebx + 0x24]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2f8]
mov eax, 0x5052bc
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2f8]
lea eax, [ebx + 0x28]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x2fc]
mov eax, 0x5052dc
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x2fc]
lea eax, [ebx + 0x2c]
call fcn.004077d0
push ebp
lea edx, [ebp - 0x300]
mov eax, 0x505304
call fcn.00504ce8
pop ecx
mov edx, dword [ebp - 0x300]
lea eax, [ebx + 0x30]
call fcn.004077d0
push ebp
call fcn.00504b80
pop ecx
mov esi, eax
mov dx, 1
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x38], al
mov dx, 2
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x39], al
mov dx, 8
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x3b], al
mov dx, 0x20
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x3a], al
mov dx, 4
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x3c], al
mov dx, 0x10
mov eax, esi
call fcn.00504b6c
mov byte [ebx + 0x3d], al
lea edx, [ebp - 0x304]
mov eax, esi
call fcn.00504608
mov edx, dword [ebp - 0x304]
lea eax, [ebx + 0x34]
call fcn.004077d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505108
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004042b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505135
lea eax, [ebp - 0x304]
mov edx, 0xd
call fcn.004077c8
lea eax, [ebp - 0x10]
call fcn.004077c0
ret