Function at 0x589540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
add edi, 0xfffffffc
xor eax, eax
push ebp
push 0x589a8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
call fcn.004c44b4
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [edi]
add eax, 0x524
mov ecx, 1
mov edx, dword [sym.StartupControl.exe___xp_21Smaskdata_TsMaskArray]
call fcn.004c467c
add esp, 4
mov eax, dword [ebp + 8]
imul esi, dword [eax - 8], 0x26
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x10c]
test eax, eax
jge 0x5895b6
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5895b9
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x114]
test eax, eax
jge 0x5895d6
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5895d9
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x108]
test eax, eax
jge 0x5895f6
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5895f9
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x110]
test eax, eax
jge 0x589616
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x589619
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x118]
push eax
push 1
push 1
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov edx, dword [eax + esi*8 + 0x11c]
mov eax, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x52c]
mov eax, dword [eax + esi*8 + 0x120]
xor ecx, ecx
call sym.StartupControl.exe__Sgradient_MakeShadow_qqr15Graphics_TColoriiiiioo
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
add eax, eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
pop edx
call sym.StartupControl.exe__Sgraphutils_CreateBmp32_qqrxixi
lea esi, [ebx + ebx*8]
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov dword [edx + esi*8], eax
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov edx, dword [edi]
mov edx, dword [edx + 0x52c]
cmp dword [edx + eax*8 + 0xfc], 3
jne 0x5896f6
push 0xff00ff
push 0xff00ff
push 0xff00ff
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call sym.StartupControl.exe__Acntutils_MkRect_qqrp16Graphics_TBitmap
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
mov eax, dword [ecx + eax*8 + 0x120]
push eax
lea eax, [ebx + ebx*8]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x524]
mov eax, dword [ecx + eax*8]
pop ecx
call fcn.0057eaa0
jmp 0x589774
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov edx, dword [edi]
mov edx, dword [edx + 0x52c]
mov eax, dword [edx + eax*8 + 0x124]
push eax
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov edx, dword [edi]
mov edx, dword [edx + 0x52c]
mov eax, dword [edx + eax*8 + 0x128]
push eax
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov edx, dword [edi]
mov edx, dword [edx + 0x52c]
mov eax, dword [edx + eax*8 + 0x12c]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call sym.StartupControl.exe__Acntutils_MkRect_qqrp16Graphics_TBitmap
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
mov eax, dword [ecx + eax*8 + 0x120]
push eax
lea eax, [ebx + ebx*8]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x524]
mov eax, dword [ecx + eax*8]
pop ecx
call fcn.0057eaa0
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00502d6c
call fcn.004fdd24
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
push 0
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8]
call fcn.00502d6c
call fcn.004fdd24
push eax
call sub.GDI32.DLL_BitBlt
mov eax, dword [ebp + 8]
imul eax, dword [eax - 8], 0x26
mov edx, dword [edi]
mov edx, dword [edx + 0x52c]
mov dword [edx + eax*8 + 0x100], ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8]
lea edx, [ebp - 0x24]
call sym.StartupControl.exe__Acntutils_MkRect_qqrp16Graphics_TBitmap
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
push esi
push edi
lea edi, [eax + esi*8 + 0xc]
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov dword [edx + esi*8 + 0x40], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov dword [edx + esi*8 + 0x44], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8 + 0x40]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
add eax, dword [ecx + edx*8 + 0x108]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
sub eax, dword [ecx + edx*8 + 0x110]
sar eax, 1
jns 0x58987a
adc eax, 0
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov word [edx + esi*8 + 0x28], ax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov eax, dword [eax + esi*8 + 0x40]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
add eax, dword [ecx + edx*8 + 0x110]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
sub eax, dword [ecx + edx*8 + 0x108]
sar eax, 1
jns 0x5898c6
adc eax, 0
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov word [edx + esi*8 + 0x2c], ax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
add eax, dword [ecx + edx*8 + 0x10c]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
sub eax, dword [ecx + edx*8 + 0x114]
sar eax, 1
jns 0x58990e
adc eax, 0
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov word [edx + esi*8 + 0x2a], ax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
add eax, dword [ecx + edx*8 + 0x114]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 8], 0x26
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x52c]
sub eax, dword [ecx + edx*8 + 0x10c]
sar eax, 1
jns 0x589956
adc eax, 0
mov edx, dword [edi]
mov edx, dword [edx + 0x524]
mov word [edx + esi*8 + 0x2e], ax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
push dword [eax + esi*8 + 4]
push 0x589aa8
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
push dword [eax + esi*8 + 8]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004c2fc0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
lea eax, [eax + esi*8 + 0xc]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call sym.StartupControl.exe__Acntutils_MkRect_qqriiii
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
movsx eax, word [eax + esi*8 + 0x1e]
push eax
push 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004aab6c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x589ab8
call fcn.004c2edc
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov edx, dword [eax + esi*8]
mov eax, dword [edi]
call sym.StartupControl.exe__Sskinmanager_TacSkinData_AddImage_qqrpx16Graphics_TBitmapx20System_UnicodeStringt2rx11Types_TRectt4iio
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov word [eax + esi*8 + 0x1c], 1
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov word [eax + esi*8 + 0x1e], 1
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov word [eax + esi*8 + 0x20], 1
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov byte [eax + esi*8 + 0x22], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
mov dword [eax + esi*8 + 0x24], edx
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
xor edx, edx
mov dword [eax + esi*8 + 0x30], edx
mov eax, dword [edi]
mov eax, dword [eax + 0x524]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [eax + esi*8 + 0x3c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.004c09bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x589a92
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004c29f0
ret