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

Disassembly:
mov edx, dword [esi + 4]
mov ecx, dword [eax + 0xc]
sub esp, 0x30
push ebx
push ebp
push edi
lea edi, [esi + 0x58]
push edi
push edx
mov dword [esi + 0x8c], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi]
mov ebp, dword [esi + 0x60]
mov edx, dword [esi + 0x30]
mov ebx, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
sub ebp, ecx
mov eax, ebp
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esi + 0x34]
sar eax, 1
add ecx, eax
sub edi, ebx
mov eax, edi
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add ebx, eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x48], ecx
add ecx, eax
mov eax, dword [esi + 0x34]
mov dword [esi + 0x4c], ebx
add ebx, eax
cmp byte [esi + 0x88], 1
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
jne 0x49f48d
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreatePath
mov ecx, dword [esi + 0x30]
mov ebx, dword [esi + 0x34]
mov dword [esp + 0x18], eax
mov eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
sub eax, ebx
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
cmp byte [esi + 0x38], 0
je 0x49f313
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
mov eax, ebx
lea ebx, [esp + 0x24]
call fcn.0049f500
jmp 0x49f32c
mov edx, dword [esi + 0x30]
push ebx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipAddPathRectangleI
test eax, eax
je 0x49f32c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipClonePath
cmp eax, ebx
je 0x49f349
mov dword [esp + 0x18], eax
push 8
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x49f35f
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebx
mov dword [eax], ecx
jmp 0x49f361
xor eax, eax
mov dword [esi + 0x94], eax
mov ebx, dword [esi + 0x78]
mov eax, ebp
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esi + 0x34]
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x74]
mov eax, edi
sub eax, dword [esi + 0x34]
xor edi, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
lea edx, [esp + 0x10]
push edx
movzx eax, bl
or eax, 0xffffff00
shl eax, 8
mov edx, ebx
shr edx, 8
movzx edx, dl
or eax, edx
shl eax, 8
shr ebx, 0x10
movzx edx, bl
or eax, edx
push edi
push eax
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
shl eax, 8
movzx edx, dl
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
sar ebp, 1
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], vtable.Gdiplus::LinearGradientBrush.0
mov dword [esp + 0x28], edi
call sub.gdiplus.dll_GdipCreateLineBrushI
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], eax
call fcn.0041bc60
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x49f428
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x6c], edi
mov ebx, dword [0x51858c]
movzx ebp, word [esi + 0x68]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x49f468
lea edx, [esp + 0x10]
push edx
push ebp
push ebx
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov dword [edi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
jmp 0x49f46a
xor edi, edi
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esi + 0x70], edi
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x14]
push edx
call sub.gdiplus.dll_GdipDeletePath
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x30
ret
movzx eax, word [esi + 0x68]
push eax
mov eax, dword [0x518590]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov edi, eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x49f4b2
cmp eax, edi
je 0x49f4b2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x6c], edi
pop edi
pop ebp
mov dword [esi + 0x70], 0
mov eax, 1
pop ebx
add esp, 0x30
ret