Function at 0x557920
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e1b8a
mov eax, dword fs:[0]
push eax
sub esp, 0x178
push ebx
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
lea eax, [ebx + ebx*2]
lea eax, [eax*8 + 0x1f]
shr eax, 3
and eax, 0x1ffffffc
imul eax, ecx
add eax, 0x28
push eax
mov dword [esp + 0x24], ecx
call fcn.00427501
mov edi, eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [edi], 0x28
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov word [edi + 0xe], 0x18
mov word [edi + 0xc], 1
mov eax, dword [esi + 0x20]
add esp, 4
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
push 0
push 0
mov ebx, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
shl eax, 4
add eax, dword [ebp + 0x18]
push str.Msimg32.dll
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x557a36
push str.GradientFill
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x557a2b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
push ecx
push ebx
call eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push 0
push edi
lea eax, [edi + 0x28]
push eax
push ecx
push 0
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
fldz
lea ecx, [esp + 0x24]
fst qword [esp + 0x24]
push ecx
fstp qword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [edi + 0x28]
push eax
push edi
mov ecx, esi
call fcn.005578b0
push edi
call fcn.004274fc
mov eax, dword [ebp + 0x14]
add esp, 4
cmp eax, 1
jbe 0x557d16
cmp eax, 2
jne 0x557f66
mov eax, dword [ebp + 0x10]
test eax, eax
jbe 0x557f5c
mov ecx, dword [esp + 0x2c]
add ecx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov ebx, 0x5f14a0
mov edi, 0x5f13d0
jmp 0x557ad8
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
mov edx, dword [ebp + 0x18]
shl eax, 4
add eax, edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [ecx - 4]
mov ecx, dword [ecx]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov eax, dword [ebp + 0x18]
shl edx, 4
fstp qword [esp + 0x34]
add eax, edx
mov edx, dword [eax + 4]
fild dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
fstp qword [esp + 0x3c]
mov dword [esp + 0x14], edx
fild dword [esp + 0x24]
mov edx, dword [ebp + 0x18]
shl ecx, 4
lea eax, [ecx + edx]
mov edx, dword [eax]
fstp qword [esp + 0x44]
fild dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
push 1
fstp qword [esp + 0x50]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x28]
push 1
push 1
lea eax, [esp + 0x40]
fstp qword [esp + 0x60]
push eax
fild dword [esp + 0x24]
mov ecx, esi
fstp qword [esp + 0x6c]
call fcn.00550c00
push 1
push 1
push 1
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00550c00
push 1
push 1
push 1
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00550c00
fld qword [esp + 0x3c]
fstp qword [esp + 0x17c]
mov dword [esp + 0x174], ebx
fld qword [esp + 0x34]
fstp qword [esp + 0xcc]
mov dword [esp + 0x190], 0
mov dword [esp + 0xc4], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x70]
lea edx, [esp + 0x174]
push edx
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0x198], 1
call eax
fld qword [esp + 0x4c]
fstp qword [esp + 0x10c]
mov dword [esp + 0xc4], edi
mov dword [esp + 0x174], edi
mov dword [esp + 0x104], ebx
fld qword [esp + 0x44]
mov dword [esp + 0x190], 2
fstp qword [esp + 0x8c]
mov dword [esp + 0x84], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x198], 3
call edx
fld qword [esp + 0x5c]
fstp qword [esp + 0x14c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x144], ebx
fld qword [esp + 0x54]
fstp qword [esp + 0xac]
mov dword [esp + 0x190], 4
mov dword [esp + 0xa4], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0x144]
push edx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x198], 5
call eax
fld qword [esp + 0x3c]
fstp qword [esp + 0x12c]
mov dword [esp + 0xa4], edi
mov dword [esp + 0x144], edi
mov dword [esp + 0x124], ebx
fld qword [esp + 0x34]
fstp qword [esp + 0x6c]
mov dword [esp + 0x190], 6
mov dword [esp + 0x64], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x198], 7
call edx
add dword [esp + 0x20], 0xc
sub dword [esp + 0x2c], 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x190], 0xffffffff
mov dword [esp + 0x124], edi
jne 0x557ad4
jmp 0x557f5c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xc]
fstp qword [esp + 0x34]
fild dword [esp + 0x14]
mov dword [esp + 0x24], edx
push 1
mov dword [esp + 0x18], ecx
fstp qword [esp + 0x40]
push 1
fild dword [esp + 0x2c]
push 1
lea eax, [esp + 0x40]
push eax
fstp qword [esp + 0x54]
mov ecx, esi
fild dword [esp + 0x24]
fstp qword [esp + 0x5c]
call fcn.00550c00
push 1
push 1
push 1
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00550c00
fld qword [esp + 0x3c]
mov ebx, 0x5f14a0
fstp qword [esp + 0x16c]
mov dword [esp + 0x164], ebx
fld qword [esp + 0x34]
fstp qword [esp + 0xec]
mov dword [esp + 0x190], 8
mov dword [esp + 0xe4], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x70]
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0xe8]
push eax
mov byte [esp + 0x198], 9
call edx
fld qword [esp + 0x4c]
mov edi, 0x5f13d0
fstp qword [esp + 0x9c]
mov dword [esp + 0xe4], edi
mov dword [esp + 0x164], edi
mov dword [esp + 0x94], ebx
fld qword [esp + 0x34]
fstp qword [esp + 0x7c]
mov dword [esp + 0x190], 0xa
mov dword [esp + 0x74], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0x94]
push edx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x198], 0xb
call eax
fld qword [esp + 0x4c]
fstp qword [esp + 0xdc]
mov dword [esp + 0x74], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0xd4], ebx
fld qword [esp + 0x44]
fstp qword [esp + 0xbc]
mov dword [esp + 0x190], 0xc
mov dword [esp + 0xb4], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x198], 0xd
call edx
fld qword [esp + 0x3c]
fstp qword [esp + 0x11c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0x114], ebx
fld qword [esp + 0x44]
fstp qword [esp + 0xfc]
mov dword [esp + 0x190], 0xe
mov dword [esp + 0xf4], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0x114]
push edx
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x198], 0xf
call eax
fld qword [esp + 0x3c]
fstp qword [esp + 0x15c]
mov dword [esp + 0xf4], edi
mov dword [esp + 0x114], edi
mov dword [esp + 0x154], ebx
fld qword [esp + 0x34]
fstp qword [esp + 0x13c]
mov dword [esp + 0x190], 0x10
mov dword [esp + 0x134], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x138]
push eax
mov byte [esp + 0x198], 0x11
call edx
mov dword [esp + 0x134], edi
mov dword [esp + 0x190], 0xffffffff
mov dword [esp + 0x154], edi
mov ecx, dword [esi + 0xc]
push 2
call fcn.00540290
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14