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

Disassembly:
sub esp, 0x60
push ebp
push esi
mov esi, dword [esp + 0x6c]
xor ebp, ebp
cmp esi, ebp
jne 0x492307
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret
push edi
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], 0x28
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4924cd
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
lea ecx, [esp + 0x44]
push ecx
push ebp
push ebp
push ebp
push edx
push edi
call esi
test eax, eax
je 0x4924b9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
imul eax, ecx
push ebx
mov ebx, eax
lea eax, [ebx*4]
push eax
push ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4924b6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x48]
push ecx
push ebp
push edx
push 0
push eax
push edi
call esi
test eax, eax
je 0x4924b6
xor edi, edi
test ebx, ebx
jbe 0x492455
lea esi, [ebp + 3]
movzx edx, byte [esi - 3]
movzx ecx, byte [esi - 1]
movzx eax, byte [esi - 2]
add ecx, edx
add ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xff
sub eax, ecx
mov cl, byte [esi]
test cl, cl
jne 0x492433
cmp eax, 0xff
je 0x49244d
test eax, eax
jne 0x49243c
mov eax, 1
movzx edx, cl
mov ecx, dword [esp + 0x78]
shl edx, 0x18
or edx, dword [ecx + eax*4]
mov dword [ebp + edi*4], edx
inc edi
add esi, 4
cmp edi, ebx
jb 0x492401
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
push esi
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4924af
push 0
lea ecx, [esp + 0x48]
push ecx
push ebp
push esi
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SetDIBits]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], 1
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebp, ebp
pop ebx
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
push edi
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x60
ret