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

Disassembly:
sub esp, 0x70
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_GetIconInfo]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
xor ebp, ebp
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x17], 1
je 0x506b2e
lea edx, [esp + 0x3c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jle 0x506b5f
mov ebx, dword [esp + 0x44]
jmp 0x506b5b
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x506d8c
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push eax
mov byte [esp + 0x23], bl
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jle 0x506b5f
mov eax, dword [esp + 0x44]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov ebp, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x64], esi
mov esi, ebx
imul esi, ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
xor ecx, ecx
mov edi, ebx
neg edi
mov eax, esi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], edi
mov word [esp + 0x60], 1
mov word [esp + 0x62], 0x20
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
add esp, 4
mov ebp, eax
push 0
mov dword [esp + 0x28], ebp
call dword [sym.imp.USER32.dll_GetDC]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x1c], eax
je 0x506c04
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x58]
push ecx
push ebp
push ebx
push 0
push edx
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
jmp 0x506cb4
xor ecx, ecx
lea ebp, [esi + esi]
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov edx, dword [esp + 0x48]
add esp, 4
push 0
mov ebp, eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
mov eax, ebx
neg eax
add eax, eax
push edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x5c], edi
jle 0x506ca7
lea edx, [ebp + esi*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
sub edx, ebp
mov eax, ebp
mov dword [esp + 0x20], edx
jmp 0x506c70
lea edi, [ecx + esi]
lea edx, [esi + esi]
cmp edi, edx
jge 0x506ca7
mov edx, dword [eax]
test edx, edx
jne 0x506c91
mov edi, dword [esp + 0x18]
mov edi, dword [edi]
xor edi, edx
mov edx, dword [esp + 0x20]
mov dword [edx + eax], edi
jmp 0x506c98
mov edi, dword [esp + 0x20]
mov dword [edi + eax], edx
add dword [esp + 0x18], 4
add ecx, 1
add eax, 4
cmp ecx, esi
jl 0x506c70
push ebp
call fcn.0069c8fa
mov ebp, dword [esp + 0x28]
add esp, 4
xor eax, eax
test esi, esi
jle 0x506cd1
lea ebx, [ebx]
test dword [ebp + eax*4], 0xff000000
jne 0x506d32
add eax, 1
cmp eax, esi
jl 0x506cc0
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov ecx, dword [esp + 0x38]
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x58]
push eax
push edi
push ebx
mov ebx, dword [esp + 0x2c]
push 0
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
jle 0x506d27
mov ecx, edi
mov eax, ebp
sub ecx, ebp
cmp dword [ecx + eax], 0
jne 0x506d1f
or dword [eax], 0xff000000
add eax, 4
sub esi, 1
jne 0x506d13
push edi
call fcn.0069c8fa
add esp, 4
jmp 0x506d36
mov ebx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x58]
push edx
push ebp
push 4
mov eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov edi, dword [esp + 0x84]
push ebx
push 0
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
push ebp
call fcn.0069c8fa
xor eax, eax
add esp, 4
cmp dword [edi + 4], eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x70
ret 4