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

Disassembly:
sub esp, 0x60
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
je 0x526569
mov eax, dword [ecx + 0x708]
mov dword [esp + 4], eax
mov eax, dword [0x5b1884]
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x526730
push eax
mov word [esp + 0x58], 4
mov word [esp + 0x5a], 5
mov word [esp + 0x5c], 6
mov word [esp + 0x5e], 0xa
mov word [esp + 0x60], 8
mov word [esp + 0x62], 9
mov word [esp + 0x64], 0xb
mov word [esp + 0x66], 0xc
mov word [esp + 0x68], 0xf
mov word [esp + 0x6a], 7
mov word [esp + 0x6c], 0x11
mov word [esp + 0x6e], 0x12
mov word [esp + 0x70], 0xd
mov word [esp + 0x72], 0xe
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x526723
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x52671a
push 0x10
push 0xe0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x526713
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x52670c
push 0xff00ff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5266f4
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov ebp, dword [sym.imp.USER32.dll_DrawIconEx]
xor edi, edi
lea ecx, [ecx]
movzx edx, word [esp + edi*2 + 0x54]
mov eax, dword [0x5b4310]
push 0
push 0x10
push 0x10
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
test esi, esi
je 0x5266d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 3
push 0
push 0
push 0x10
push 0x10
push esi
push ecx
push edx
push ebx
call ebp
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x2c]
add edx, 0x10
inc edi
cmp edi, 0xe
mov dword [esp + 0x2c], edx
jl 0x526680
cmp edi, 0xe
jne 0x5266dd
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52670c
mov dword [0x5b1884], edi
jmp 0x526713
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x5b1884]
test eax, eax
je case.default.0x52677f
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x526765
mov ecx, dword [esp + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x44]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
mov dword [esp + 0x10], ecx
jmp 0x526772
mov esi, 0x10
mov dword [esp + 0x10], 0xe
mov eax, dword [esp + 0x14]
cmp eax, 9
ja case.default.0x52677f
jmp dword [eax*4 + 0x5268f4]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xa48]
test eax, eax
je 0x526798
xor edi, edi
jmp 0x526800
mov edi, esi
imul edi, edi, 0xb
jmp 0x526800
mov edi, esi
jmp 0x526800
mov eax, dword [esp + 0x74]
cmp eax, 1
je 0x5267bd
cmp eax, 2
je 0x5267bd
cmp eax, 3
lea edi, [esi + esi*2]
je 0x526800
shl edi, 1
jmp 0x526800
lea edi, [esi + esi]
jmp 0x526800
cmp dword [esp + 0x74], 1
jne 0x5267d2
lea edi, [esi*4]
jmp 0x526800
lea edi, [esi + esi*4]
jmp 0x526800
lea edi, [esi + esi*8]
jmp 0x526800
mov edi, esi
imul edi, edi, 7
jmp 0x526800
lea edi, [esi*8]
jmp 0x526800
lea edi, [esi + esi*4]
shl edi, 1
jmp 0x526800
lea edi, [esi + esi*2]
shl edi, 2
jmp 0x526800
mov edi, esi
imul edi, edi, 0xd
mov eax, dword [esp + 0x78]
test eax, eax
je case.default.0x52677f
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x74], eax
je case.default.0x52677f
mov ecx, dword [0x5b1884]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push 0xff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebp
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push eax
mov edx, edi
mov edi, dword [esp + 0x90]
push esi
push 0
mov ecx, edi
call fcn.00476750
mov eax, dword [0x5a2cb0]
test eax, eax
je 0x5268d4
mov ecx, dword [esp + 0x18]
call fcn.00421120
test eax, eax
je 0x5268d4
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x7c]
push esi
push ebx
mov edx, ebp
call fcn.00526330
test eax, eax
jne 0x5268d4
mov edx, dword [0x5a5564]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x30]
push ecx
add eax, ebx
add esi, ebp
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x10