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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6218e7
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x52f012
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0x20]
call fcn.005d6d52
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 1
push ebp
push 0x21
push ecx
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0xd4], ebp
call fcn.005d6e17
test eax, eax
je 0x52effe
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
mov dword [esp + 0x24], ebp
call fcn.0052f070
add esp, 0xc
cmp eax, ebp
je 0x52effe
cmp dword [esp + 0x18], ebp
je 0x52effe
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], vtable.CBitmap.0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc4], 1
call fcn.005e1342
mov al, byte [esp + 0xd4]
test al, al
je 0x52ed9d
mov eax, dword [esp + 0xcc]
xor edx, edx
mov dl, ah
mov dword [esp + 0x8c], ebp
mov dh, al
mov dword [esp + 0x9c], ebp
shr eax, 0x10
shl edx, 8
and eax, 0xff
mov dword [esp + 0xac], ebp
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
or edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x88], 0x808080
mov dword [esp + 0x90], 0x10
mov byte [esp + 0x94], 1
mov dword [esp + 0x98], 0xc0c0c0
mov dword [esp + 0xa0], 0xf
mov byte [esp + 0xa4], 1
mov dword [esp + 0xa8], 0xdfdfdf
mov dword [esp + 0xb0], 0x16
mov byte [esp + 0xb4], 1
xor ebx, ebx
lea esi, [esp + 0x8c]
mov edi, 3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi - 4]
cmp ecx, eax
jne 0x52ed16
mov byte [esi + 8], 0
jmp 0x52ed42
mov ecx, dword [esi + 4]
push ecx
call ebp
xor ecx, ecx
mov dword [esi], eax
mov cl, byte [esi + 1]
mov ch, al
shr eax, 0x10
shl ecx, 8
and eax, 0xff
or ecx, eax
mov dword [esi], ecx
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x52ed41
mov byte [esi + 8], 0
jmp 0x52ed42
inc ebx
add esi, 0x10
dec edi
jne 0x52ed05
test ebx, ebx
jle 0x52ed9b
mov edi, dword [esp + 0x40]
xor ecx, ecx
imul edi, dword [esp + 0x44]
test edi, edi
jle 0x52ed9b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [edx + ecx*4]
cmp esi, eax
je 0x52ed96
lea eax, [esp + 0x88]
mov esi, 3
mov bl, byte [eax + 0xc]
test bl, bl
je 0x52ed90
mov ebx, dword [edx + ecx*4]
mov ebp, dword [eax]
cmp ebx, ebp
jne 0x52ed90
mov ebx, dword [eax + 4]
mov dword [edx + ecx*4], ebx
mov edx, dword [esp + 0x18]
add eax, 0x10
dec esi
jne 0x52ed76
inc ecx
cmp ecx, edi
jl 0x52ed5f
xor ebp, ebp
test byte [0x6c69e4], 2
jne 0x52edb3
test byte [0x6c69e5], 4
jne 0x52efbf
xor ecx, ecx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x30], ecx
push ebp
mov dword [esp + 0x38], ecx
push 1
neg edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
sbb edx, edx
push 1
and edx, esi
push ecx
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edx
call dword [sym.imp.GDI32.dll_CreateBitmap]
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x52efbf
lea ecx, [esp + 0x68]
xor esi, esi
call fcn.005e073b
lea ecx, [esp + 0x54]
mov byte [esp + 0xc0], 2
call fcn.005e073b
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
mov byte [esp + 0xc4], 3
call edi
push eax
lea ecx, [esp + 0x6c]
call fcn.005e07f2
cmp eax, ebp
je 0x52ef47
push ebp
call edi
push eax
lea ecx, [esp + 0x58]
call fcn.005e07f2
cmp eax, ebp
je 0x52ef47
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call esi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
push edx
push eax
call esi
push ebp
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x90], edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebp
jle 0x52ef22
mov ebx, dword [sym.imp.GDI32.dll_GetPixel]
mov ebp, dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x52ef11
mov edx, dword [esp + 0x58]
push esi
push edi
push edx
call ebx
mov ecx, dword [esp + 0xcc]
push 0
cmp eax, ecx
push esi
push edi
je 0x52ef01
mov eax, dword [esp + 0x78]
push eax
jmp 0x52ef06
mov ecx, dword [esp + 0x64]
push ecx
call ebp
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x52eee2
mov ecx, dword [esp + 0x40]
inc edi
cmp edi, ecx
jl 0x52eedc
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
xor ebp, ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
push edx
push eax
call esi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
push ecx
push edx
call esi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov esi, eax
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, ebp
mov byte [esp + 0xc0], 2
lea ecx, [esp + 0x54]
je 0x52efa9
call fcn.005e0870
lea ecx, [esp + 0x68]
mov byte [esp + 0xc0], 1
call fcn.005e0870
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 4
call fcn.005e1399
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.005d6d7b
mov eax, esi
jmp 0x52f014
call fcn.005e0870
lea ecx, [esp + 0x68]
mov byte [esp + 0xc0], 1
call fcn.005e0870
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0xcc]
lea eax, [esp + 0x10]
push edx
neg eax
sbb eax, eax
and eax, ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, ebp
jge 0x52f02d
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 5
call fcn.005e1399
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.005d6d7b
xor eax, eax
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret
mov ecx, dword [esp + 0x24]
push ebp
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 6
call fcn.005e1399
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.005d6d7b
mov eax, esi
jmp 0x52f014