Function at 0x4af4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0xc], ebp
jne 0x4af4fb
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4af73a
mov eax, dword [esp + 0x30]
mov ebx, dword [sym.imp.GDI32.dll_GetDIBits]
lea edx, [esp + 0x48]
push ebp
push edx
push ebp
push ebp
push ebp
push eax
push esi
call ebx
test eax, eax
je 0x4af726
mov ecx, dword [esp + 0x68]
lea esi, [ecx*4 + 0x10028]
push esi
call fcn.005129c8
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
lea esi, [esp + 0x4c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x7c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, 0xa
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x10], ebp
mov dword [ebp + 0x10], esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
push esi
push ebp
push esi
push eax
push esi
push ecx
push edx
call ebx
test eax, eax
je 0x4af719
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edi, eax
mov dword [esp + 0x18], eax
imul edi, ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
lea eax, [edi*4]
mov dword [esp + 0x58], esi
lea edx, [edi*4]
mov esi, ecx
push eax
push 0
mov word [esp + 0x5c], 1
mov word [esp + 0x5e], 0x20
mov dword [esp + 0x64], edx
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4af715
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x48]
push 0
push ecx
push ebp
push esi
push 0
push edx
push eax
call ebx
test eax, eax
je 0x4af715
test edi, edi
jbe 0x4af69e
lea esi, [ebp + 3]
mov ebx, ebp
xor ecx, ecx
xor edx, edx
mov cl, byte [esi - 1]
mov dl, byte [esi - 3]
xor eax, eax
add ecx, edx
mov al, byte [esi - 2]
add ecx, eax
mov eax, 0xaaaaaaab
mul ecx
mov cl, byte [esi]
mov eax, 0xff
shr edx, 1
sub eax, edx
test cl, cl
jne 0x4af674
cmp eax, 0xff
je 0x4af691
test eax, eax
jne 0x4af67d
mov eax, 1
mov edx, dword [esp + 0x7c]
and ecx, 0xff
shl ecx, 0x18
mov eax, dword [edx + eax*4]
or eax, ecx
mov dword [ebx], eax
add esi, 4
add ebx, 4
dec edi
jne 0x4af644
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x78]
xor ecx, ecx
push esi
mov dword [esp + 0x3c], ecx
push edx
mov dword [esp + 0x44], ecx
push edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x44], eax
je 0x4af70e
lea ecx, [esp + 0x48]
push 0
push ecx
push ebp
push esi
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SetDIBits]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], 1
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebp, dword [esp + 0x10]
push ebp
call fcn.005129f1
mov esi, dword [esp + 0x7c]
add esp, 4
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret