Function at 0x4e8a58
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp + 0xc], 0
jl 0x4e8dd8
mov eax, dword [ebp - 8]
dec eax
cmp eax, dword [ebp + 0xc]
jl 0x4e8dd8
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.0040547c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4e8dc4
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x18]
mov eax, dword [ebp + 0xc]
add eax, eax
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test al, al
jne 0x4e8ad9
mov dword [ebx], pe_nt_image_headers32
jmp 0x4e8ade
movzx eax, al
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 1]
test al, al
jne 0x4e8af2
mov dword [ebx + 4], pe_nt_image_headers32
jmp 0x4e8af8
movzx eax, al
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0040547c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4e8da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 0x10]
sub edx, eax
mov cx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x30]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x18]
mov edx, 0x5cb88d
mov ecx, 8
mov eax, dword [ebp - 0x18]
call fcn.00420da8
test al, al
je 0x4e8c98
mov dl, 1
mov eax, dword [0x4e3150]
call fcn.004f0080
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4e8c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [0x4e1f94]
call fcn.004ed0bc
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4e8c72
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dl, 1
mov eax, dword [0x4e1f94]
call fcn.004ed0bc
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x4e8c53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x38]
call fcn.004eeccc
mov eax, dword [ebp - 0x38]
call fcn.004edaa4
mov eax, dword [eax + 0x48]
xor edx, edx
call fcn.004e6a74
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x38]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x74]
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0x14
call fcn.00405e7c
mov dword [ebp - 0x80], 0xffffffff
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x84]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x84]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
call sub.user32.dll_CreateIconIndirect
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8c5a
mov eax, dword [ebp - 0x38]
call fcn.00406528
pop eax
jmp eax
push ebx
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.004e889c
lea eax, [ebp - 0x6c]
push eax
push 0x18
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_GetObjectW
lea eax, [ebp - 0x54]
push eax
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_GetObjectW
mov esi, dword [ebp - 0x60]
imul esi, dword [ebp - 0x64]
movzx eax, word [ebp - 0x5c]
imul esi, eax
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0x4c]
movzx edx, word [ebp - 0x44]
imul edx
mov dword [ebp - 0x2c], eax
mov eax, esi
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0040547c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e8d7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
add edi, esi
mov eax, dword [ebp - 0x28]
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_GetBitmapBits
push edi
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_GetBitmapBits
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_DeleteObject
push edi
mov eax, dword [ebp - 0x28]
push eax
movzx eax, byte [ebp - 0x42]
push eax
movzx eax, byte [ebp - 0x44]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [0x5d063c]
push eax
call sub.user32.dll_CreateIcon
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8d84
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.004054b0
pop eax
jmp eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc